Skip to content
New issue

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

Wrong type for fget of property #7516

Closed
eagleoflqj opened this issue Mar 20, 2022 · 2 comments
Closed

Wrong type for fget of property #7516

eagleoflqj opened this issue Mar 20, 2022 · 2 comments

Comments

@eagleoflqj
Copy link

class A:
    @property
    def foo(self):
        return 'a'

A.foo.fget(A())

pyright reports error error: Expected 0 positional arguments (reportGeneralTypeIssues)

@AlexWaygood
Copy link
Member

I'm adding the "deferred" label since there's not much we can do on this without movement from mypy, unfortunately :(

@AlexWaygood
Copy link
Member

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.

@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2022
@AlexWaygood AlexWaygood removed the status: deferred Issue or PR deferred until some precondition is fixed label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants