Typed languages, usage tutorials, and typing in Python

3 1,469 123
articles words lines of code

Today I learned about the Python 3.12 type statement you can use to create type aliases.

Today I learned how to create a sentinel value to use as a default argument in a way that respects Python typing.

Today I learned about the type hint Any and its bidirectional compatibility with all other types.