Closed
Description
From typing
docs:
Type[Any]
is equivalent toType
which in turn is equivalent totype
, which is the root of Python’s metaclass hierarchy.
But this code produces error:
from typing import *
y: type
x: Type[Any] = y
error: Incompatible types in assignment (expression has type "
type
", variable has typeType[Any])