运行这个mypy要点(https://mypy-play.net/?mypy=latest&python=3.12&gist=58a8148f2c95c7a282a6f8a11ccd689a)
from collections import Counter
C = Counter()
给出了这个 mypy 错误:
main.py:3: error: Need type annotation for "C" [var-annotated]
Found 1 error in 1 file (checked 1 source file)
mypy 有什么方法可以推断出这种类型吗?