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

前端 未结 0 1646
梦毁少年i
梦毁少年i 2021-02-11 10:22

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

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