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
functools.cached_property
Bug Report
Stubtest reports cannot reconcile @property on stub with runtime object on functions decorated with cached_property.
cannot reconcile @property on stub with runtime object
cached_property
To Reproduce
$ cat t.py from functools import cached_property class C: @cached_property def p(self): return 1 $ cat t.pyi from functools import cached_property class C: @cached_property def p(self) -> int: ... $ PYTHONPATH=. stubtest t error: t.C.p is inconsistent, cannot reconcile @property on stub with runtime object Stub: in file /tmp/t.pyi:3 def (self: t.C) -> builtins.int Runtime: <functools.cached_property object at 0x7fa3228ce0f0> Found 1 error (checked 1 module)
Expected Behavior
no error
Actual Behavior
error
Your Environment
mypy.ini
Related: python/typeshed#12153
The text was updated successfully, but these errors were encountered:
2632ea3
hamdanal
Successfully merging a pull request may close this issue.
Bug Report
Stubtest reports
cannot reconcile @property on stub with runtime object
on functions decorated withcached_property
.To Reproduce
Expected Behavior
no error
Actual Behavior
error
Your Environment
mypy.ini
(and other config files): N/ARelated: python/typeshed#12153
The text was updated successfully, but these errors were encountered: