Skip to content

Forbid subclasses to have the exact same methods as superclasses #159

Closed as not planned
@sobolevn

Description

@sobolevn

Right now this code is not an error:

class A:
    def some(self) -> int: ...

class B(A):
    def some(self) -> int: ...

But, it is not a good style. I propose to add a check for this.
Related python/typeshed#7073

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions