mathspp blog

398 434,583 36,566
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.