How to type annotate length of string?

前端 未结 0 606
囚心锁ツ
囚心锁ツ 2020-12-31 20:43

I want to type annotate a function that only accepts a single character in python, take this example: (s: str) -> int

As Python doesn\'t have a type f

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