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
Example:
from typing import Callable, Union, Any, overload, Protocol class DCall(Protocol): def __call__(self, arg: Union[int, str]) -> None: ... class D: def __getattr__(self, attr: str) -> DCall: # This method might contain something like during runtime: # if attr == '__call__': # return some_func # assert False ... def dec_d(f: Callable[..., Any]) -> D: return D() @overload def f_d(arg: int) -> None: ... @overload def f_d(arg: str) -> None: ... @dec_d def f_d(arg: Union[int, str]) -> None: ...
Outputs:
out/ex.py:18: error: "D" not callable
This happens here:
mypy/mypy/checker.py
Lines 510 to 520 in 4f59ca4
Refs #11638 Refs #11630
The text was updated successfully, but these errors were encountered:
Mypy is right here. See #11638 (review)
Sorry, something went wrong.
No branches or pull requests
Example:
Outputs:
This happens here:
mypy/mypy/checker.py
Lines 510 to 520 in 4f59ca4
Refs #11638
Refs #11630
The text was updated successfully, but these errors were encountered: