Purpose of TypeAlias in Python. Are the any usecases?

后端 未结 0 510
难免孤独
难免孤独 2020-12-06 10:49

Looking at code snippets in new Python 3.10 I cannot get if the new TypeAlias type hint actually allows doing new things.

t1 = List[int]
t2 = \'L         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题