For the given python code:
from dataclasses import dataclass
import typing
@dataclass
class Foo:
bar: str
T = typing.TypeVar("T")
@dataclass
class Bar(typing.Generic[T]):
items: typing.List[T]
Buz = Bar[Foo]
How to know with python code which Buz class have generic type Foo ? Does exist inspection method for that ?