Skip to content

Unbound type variable false positive with six.with_metaclass #14475

Description

@JukkaL

This code generates a false positive:

importsiximportabcfromtypingimportTypeVar, GenericT=TypeVar("T")
classC(six.with_metaclass(abc.ABCMeta, Generic[T])):
passclassD(six.with_metaclass(abc.ABCMeta, C[T])): # Type variable "t.T" is unboundpass

This is a regression from 0.991 introduced here:

@ilevkivskyi Do you have time to look at this? This is a blocker for the 1.0 release.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions