Код: Выделить всё
from typing import TypeVar
class Faa:
pass
T = TypeVar("T")
def foo(a: Type[T], b: T, c: T) -> None:
pass
foo(Faa, 1, "2") # this should not be allowed
может научить меня, как обеспечить соблюдение такого рода общего набора?
Подробнее здесь: https://stackoverflow.com/questions/793 ... at-runtime