Skip to content

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

Closed
@ilevkivskyi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions