Skip to content

Wrong type for fget of property #7516

Closed as not planned
Closed as not planned

Description

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

A.foo.fget(A())

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

Activity

  1. AlexWaygood commented on Jun 12, 2022

    @AlexWaygood
    Member

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

  2. AlexWaygood commented on Sep 28, 2022

    @AlexWaygood
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions