If None as a type hint is replaced by type(None) why do they behave differently while annotating?

后端 未结 0 1187
盖世英雄少女心
盖世英雄少女心 2021-01-24 03:27

I found out from docs:

Note that None as a type hint is a special case and is replaced by type(None).

However,

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