diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a55c8e3..2f6f6c64 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
-## v2.0.22
+## v2.0.22rc1
 
-* ...
+* fixes #16
 
 ## v2.0.21
 
diff --git a/satella/coding/typecheck.py b/satella/coding/typecheck.py
index 84bd8097..010121d5 100644
--- a/satella/coding/typecheck.py
+++ b/satella/coding/typecheck.py
@@ -293,19 +293,21 @@ def istype(var, type_):
         return any(istype(var, subtype) for subtype in type_)
 
     try:
+        if type_ in (Callable, Iterable, Sequence, Mapping):
+            raise TypeError()
+
         if isinstance(var, type_):
             return True
 
     except TypeError as e:   # must be a typing.* annotation
-        try:
-            return all(hasattr(var, n) for n in {
-                Iterable: ('__iter__',),
-                Sequence: ('__iter__', '__getattr__', '__len__'),
-                Callable: ('__call__', ),
-                Mapping: ('__getitem__', ),
-            }[type(var)])
-        except KeyError:
-            pass
+        if type_ == Callable:
+            return hasattr(var, '__call__')
+        elif type_ == Iterable:
+            return hasattr(var, '__iter__')
+        elif type_ == Sequence:
+            return hasattr(var, '__iter__') and hasattr(var, '__getattr__') and hasattr(var, '__len__')
+        elif type_ == Mapping:
+            return hasattr(var, '__getitem__')
 
         return type(var) == type_
 
diff --git a/setup.cfg b/setup.cfg
index 5a0931c8..63ace994 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = satella
-version = 2.0.22a1
+version = 2.0.22rc1
 description-file = README.md
 author = Piotr Maślanka
 author_email = piotrm@smok.co

@typed(Callable) does not accept lambdas
diff --git a/tests/test_coding/test_debug.py b/tests/test_coding/test_debug.py
index 2256def1..504638ae 100644
--- a/tests/test_coding/test_debug.py
+++ b/tests/test_coding/test_debug.py
@@ -48,6 +48,13 @@ class TestTypecheck(unittest.TestCase):
         p(None)
         self.assertRaises(TypeError, lambda: p(5.0))
 
+    def test_lambda(self):
+        @typed(Callable)
+        def q(p):
+            pass
+
+        q(lambda: None)
+
     def test_forarg(self):
         @for_argument(int)
         def testa(a):

pip install -e .
parse_log_pytest
requirements.txt
nose mock coverage pytest
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
mock==5.2.0
monotonic==1.6
nose==1.3.7
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
-e git+https://github.com/piotrmaslanka/satella.git@a11e207b41c0037c201704c243ce3c01879b3127#egg=satella
six==1.17.0
tomli==2.0.1
typing==3.7.4.3
typing_extensions==4.7.1
zipp==3.15.0

name: satella
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - mock==5.2.0
      - monotonic==1.6
      - nose==1.3.7
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - six==1.17.0
      - tomli==2.0.1
      - typing==3.7.4.3
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/satella

tests/test_coding/test_debug.py::TestTypecheck::test_lambda
tests/test_coding/test_debug.py::TestTypecheck::test_T2 tests/test_coding/test_debug.py::TestTypecheck::test_T2a tests/test_coding/test_debug.py::TestTypecheck::test_che_co2 tests/test_coding/test_debug.py::TestTypecheck::test_checked_coerce tests/test_coding/test_debug.py::TestTypecheck::test_cls tests/test_coding/test_debug.py::TestTypecheck::test_cls_test tests/test_coding/test_debug.py::TestTypecheck::test_coerce tests/test_coding/test_debug.py::TestTypecheck::test_coerce_result tests/test_coding/test_debug.py::TestTypecheck::test_forarg tests/test_coding/test_debug.py::TestTypecheck::test_precondition tests/test_coding/test_debug.py::TestTypecheck::test_self tests/test_coding/test_debug.py::TestTypecheck::test_shorter_coerces tests/test_coding/test_debug.py::TestTypecheck::test_t1 tests/test_coding/test_debug.py::TestTypecheck::test_t2 tests/test_coding/test_debug.py::TestTypecheck::test_t3 tests/test_coding/test_debug.py::TestTypecheck::test_ta tests/test_coding/test_debug.py::TestTypecheck::test_tma
setup.cfg CHANGELOG.md satella/coding/typecheck.py
setup.cfg CHANGELOG.md satella/coding/typecheck.py