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
Bug Report
Mypy doesn't understand the __signature__ attribute of functions. This was a part of #5958 and was now moved to it's own issue.
__signature__
To Reproduce
import inspect foo = lambda: None foo.__signature__ = inspect.signature(foo)
Expected Behavior
Signature attribute exists
Actual Behavior
foo.py:4:1: error: "Callable[[], None]" has no attribute "__signature__" [attr-defined]
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Mypy doesn't understand the
__signature__
attribute of functions.This was a part of #5958 and was now moved to it's own issue.
To Reproduce
Expected Behavior
Signature attribute exists
Actual Behavior
foo.py:4:1: error: "Callable[[], None]" has no attribute "__signature__" [attr-defined]
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: