Nik*_*s R 5 python type-annotation
我有一个接受类型提示作为函数参数的用例。但是接受类型提示的正确类型提示是什么?
T = TypeVar('T', bound='TypeHintType')
def register_handler(type_hint: T, handler: Handler[T]) -> None:
...
Run Code Online (Sandbox Code Playgroud)
是否有一个“TypeHintType”可以用来注释类型提示作为参数?
| 归档时间: |
|
| 查看次数: |
483 次 |
| 最近记录: |