We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
from typing import Callable from pytypes import TypeChecker def n() -> str: return "OK" def f() -> Callable[..., str]: return n with TypeChecker(): print(f()())
fails as follows:
$ python3 Test.py /usr/local/lib/python3.6/dist-packages/pytypes-1.0b5.post23-py3.6.egg/pytypes/type_util.py:2534: UserWarning: the system profiling hook has changed unexpectedly warn('the system profiling hook has changed unexpectedly') Traceback (most recent call last): File "Test.py", line 12, in <module> print(f()()) File "Test.py", line 8, in f def f() -> Callable[..., str]: TypeError: Callable[[arg, ...], result]: each arg must be a type. Got Ellipsis.
The text was updated successfully, but these errors were encountered:
Ellipsis is also not supported for tuples. E.g., Tuple[int, ...]. It would be very nice to get that supported!
Tuple[int, ...]
Sorry, something went wrong.
No branches or pull requests
The following code:
fails as follows:
The text was updated successfully, but these errors were encountered: