I'm trying to create a lazy container with typing in python:
T = TypeVar("T")
class Lazy(Generic[T]):
...
a = Lazy[str]
issubclass(a, Lazy)
However, I'm getting a TypeError: issubclass() arg 1 must be a class
on the last line.
Help to explain this and how I can fix it would be much appreciated.
Code taken from Custom type hint annotation