How to typehint 'return type or no return' in Pycharm

后端 未结 0 814
栀梦
栀梦 2020-12-19 16:57

How do I typehint that a function may either return a value or not return anything? What seems to be correct to me is being reported by PyCharm.



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