Skip to content

Overriding method with a property results in a false negative #7565

Closed

Description

@ilevkivskyi

This tests spuriously passes:

[case testOverrideProperty]
class B:
    def foo(self) -> int:
        ...
class C:
    @property
    def foo(self) -> int:
        ...
[builtins fixtures/property.pyi]

The best long-term approach to fixing this is likely the same as #6759 (comment)

Activity

  1. ilevkivskyi commented on Feb 12, 2020

    @ilevkivskyi
    MemberAuthor

    Note that the "reverse" override causes a false negative as well, see the example in #8386

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions