Код: Выделить всё
from typing import Generic, TypeVar
T = TypeVar("T")
class MyType(Generic):
pass # what to write here?
Возможно ли это? Если да, то как?
Подробнее здесь: https://stackoverflow.com/questions/772 ... apper-type
Код: Выделить всё
from typing import Generic, TypeVar
T = TypeVar("T")
class MyType(Generic):
pass # what to write here?