mypy
mypy copied to clipboard
Remove `--py2` CLI flags
Refs https://github.com/python/mypy/issues/12237
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
Similar to #13269, current users of this flag should get the nice error from https://github.com/python/mypy/blob/6648199ed8f1630e63c08c184939bc93abf513d1/mypy/main.py#L1203 if they pass -2 or --py2 in the next few releases