Skip to content

ignore typing.Generic in E0241: duplicate bases  #2717

Closed
@cedroyer

Description

@cedroyer

Is your feature request related to a problem? Please describe

When I use typing.Generic in 2 levels of inheritance (I think it's a correct way to use Generic), I don't want to have a E0241: duplicate bases message.

Describe the solution you'd like

Ignore typing.Generic for E0241: duplicate bases duplicate test.

Additional context

Add any other context about the feature request here.

short exemple:

from typing import Generic, TypeVar

Number = TypeVar("Number")

class IVector(Generic[Number]):
      pass

class SparceVector(Generic[Number], IVector[Number]):
     pass

 # get `E0241: duplicate bases`.
class IntVector(SparceVector[int]):
    pass

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