(no title)
n3150n | 2 years ago
As stated in the typing documentation [0]: "the only legal parameters for type are classes, Any, type variables, and unions of any of these types".
n3150n | 2 years ago
As stated in the typing documentation [0]: "the only legal parameters for type are classes, Any, type variables, and unions of any of these types".
bruce343434|2 years ago
I can put that in main.py and do `python3 main.py` and it will simply run fine.
What is the point of this whole system if it's not enforced?
tomn|2 years ago
If you don't want type checking, don't run mypy.
I don't see what's so difficult. If it was technically possible to run programs that have type errors in other languages, they would have the option to ignore type errors too, because it's convenient.
Typescript also ignores errors (generating js output for you to run) by default, so what's the point if it's not enforced?
mgkimsal|2 years ago