3 ms·
Yes, Python introduced static type hinting in version 3.5 https://www.python.org/dev/peps/pep-0484/ https://www.python.org/dev/peps/pep-0484/
by jakereps 8y ago
Yes, Python introduced static type hinting in version 3.5
https://www.python.org/dev/peps/pep-0484/ https://www.python.org/dev/peps/pep-0484/
- ubernostrum 8y agoPython introduced the 'typing' module in the standard library in 3.5, and declared that henceforth the annotation syntax was for type hints. Python introduced the annotation syntax (for everything except variables/attributes) in 3.0. The annotation syntax for variables/attributes was introduced in 3.6.