An immature idea.
Python now has a type prompt, so you can provide a parameter for the Python
interpreter to control whether to open the check type operation.
For example, in the code, I explicitly use the type prompt, such as:
# Test1.py
def foo(a: str, b: str) -> str:
c = None # type:str
return 'hi'
We can run the code with a parameter, such as
python -T test1.py
To prevent the Python interpreter from detecting the variable types in it, so
as to improve the running speed.
Thank you for reading.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/4YTUUWE4FFQV2U7UBZGXLQ5EAGKFFKTW/
Code of Conduct: http://python.org/psf/codeofconduct/