List[Optional[int]] type checking when assigning

前端 未结 0 1002
时光说笑
时光说笑 2021-01-07 13:16

I came across an inconvenience when using the Optional type.

mypy seems smart enough to detect that after checking an optional value for None the Optional part of the

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