|
|
|
|
|
by n3150n
908 days ago
|
|
It is not. As the function `print("hi")` is executed, the argument type in this case becomes `Any`, as it would be for any other executed function. 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". [0] https://docs.python.org/3/library/typing.html |
|
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?