Media Summary: today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I show the tools and processes I used to improve today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ...
Is Python With Types Faster Intermediate Anthony Explains 126 - Detailed Analysis & Overview
today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I show the tools and processes I used to improve today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... today I show you what the `TYPE_CHECKING` constant is in the typing module and why you would ever use it! - circular imports ... today I follow up to the video about Protocol and show for doing some light structural today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ...
and I actually went a bit further after recording! (it now can reorder all of pre-commit today I answer an interesting question which surprised me -- why today I talk about the several uses of Final / when typing