Vasily Zakharov
Vasily Zakharov
Cicerone migration to Kotlin in v6.0 changed the project structure seriously, so code that worked for v5 in many cases can't be formally migrated to v6+, and moreover, sometimes even...
For now, this library is available from jCenter repository, which is being deprecated: http://developer.android.com/r/tools/jcenter-end-of-service It would be nice to migrate it to mavenCentral() to be used further.
`type_util.py` references `collections.Iterable` and `collections.Iterator` which is incorrect, it should be `collections.abc.Iterable` and `collections.abc.Iterator`. It causes actual crashes like this: ```python3 Traceback (most recent call last): ... import pytypes File...
The source code of `pytypes` itself contains no annotations and no stubs are present either. Therefore `mypy` issues warnings while checking `pytypes`-enabled code.
The following code: ```python3 from typing import Callable from pytypes import TypeChecker def n() -> str: return "OK" def f() -> Callable[..., str]: return n with TypeChecker(): print(f()()) ``` fails...
For example, I have `typeshed`, a project containing stubs for Python standard library. And I'd like `pytypes` to check that my code calls standard library functions according to their annotations....
The following code: ```python3 from pytypes import TypeChecker def f() -> None: # type: ignore # blah pass with TypeChecker(): f() ``` fails as follows: ```python3 $ python3 Test.py /usr/local/lib/python3.6/dist-packages/pytypes-1.0b5.post23-py3.6.egg/pytypes/type_util.py:2534:...
The following code: ```python3 from pytypes import TypeChecker def f() -> str: raise Exception() with TypeChecker(): f() ``` fails as follows: ```python3 $ python3 Test.py Traceback (most recent call last):...
The following code: ```python3 import pytypes pytypes.enable_global_annotations_decorator() ``` crashes as follows: ```python3 Traceback (most recent call last): File "Test.py", line 2, in pytypes.enable_global_annotations_decorator() File "/usr/local/lib/python3.6/dist-packages/pytypes-1.0b5.post23-py3.6.egg/pytypes/__init__.py", line 437, in enable_global_annotations_decorator _catch_up_global_annotations_decorator()...
`set_global_annotations_decorator` is mentioned in [`README.rst`](https://github.com/Stewori/pytypes/blob/master/README.rst), but is never mentioned in the code. It's unclear how it should be used. `pytypes.set_global_annotations_decorator = True` seems to not have any effect.