Using Python typing's TypeVar for generically typed returns with bound

前端 未结 0 1955
青春惊慌失措
青春惊慌失措 2021-02-11 10:18

When trying to use typing\'s TypeVar to enable the use of generics with return types, I\'m encountering a mypy error whereby the bound argument isn\'t accounted for

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