typeshed
typeshed copied to clipboard
Wrong type for `fget` of property
class A:
@property
def foo(self):
return 'a'
A.foo.fget(A())
pyright reports error error: Expected 0 positional arguments (reportGeneralTypeIssues)
I'm adding the "deferred" label since there's not much we can do on this without movement from mypy, unfortunately :(
It seems like this was actually a bug in pyright's special-casing for property. I can no longer reproduce this bug locally using VSCode.