Skip to content

generics used in type aliases incorrectly cause Expression type contains "Any" error #13111

Open
@DetachHead

Description

@DetachHead
from typing import _T as T, Generic

class A(Generic[T]):...

NG = A[T] # error: Expression type contains "Any" (has type "Type[A[Any]]")  [misc]

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-disallow-anyThe disallow-any-* family of flagstopic-type-aliasTypeAlias and other type alias issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions