from typing import TypeVar, Generic T = TypeVar('T') class A(Generic[T]): @classmethod def func(cls) -> T: pass class B(A['B']): pass def except_b(b: B): ...
確定! 回上一頁