- Wed 24 November 2021
- python
- Marius Mather
Modernize your Python code with type annotations
Python has supported optional type annotations since Python 3.6, like: # Specify argument and return types def add(x: int, y: int) -> int: return x + y All currently supported Python …