Pass `typing` object as parameter in Python

前端 未结 0 596
我寻月下人不归
我寻月下人不归 2021-01-28 06:18

I am trying to write a function that takes two parameters: a variable, and a (non built-in) type. I would like the type-check (using mypy) to fail if the type of th

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