Skip to content

Unbound type variable false positive with six.with_metaclass #14475

Closed
@JukkaL

Description

@JukkaL

This code generates a false positive:

import six
import abc
from typing import TypeVar, Generic

T = TypeVar("T")

class C(six.with_metaclass(abc.ABCMeta, Generic[T])):
    pass

class D(six.with_metaclass(abc.ABCMeta, C[T])):  # Type variable "t.T" is unbound
    pass

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