Typed languages, usage tutorials, and typing in Python

5 2,671 226
articles words lines of code

This article goes over the major improvements made to the typing module in Python 3.15.

Learn how to define a TypedDict that accepts extra items of a given type.

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.