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

Photo Gallery

is python with types faster? (intermediate) anthony explains #126
python typing: Generator[T, S, R] (intermediate) anthony explains #297
python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365
python TypeGuard (PEP 647) (intermediate) anthony explains #439
how I sped up python by 20ms (intermediate) anthony explains #417
python typing: object vs Any (intermediate) anthony explains #275
the fastest python startup with `python -S` (intermediate) anthony explains #411
python typing: TYPE_CHECKING (intermediate) anthony explains #312
typing: Protocol + @runtime_checkable (intermediate) anthony explains #187
python Generics (intermediate) anthony explains #430
how I made my import sorter 7x faster (intermediate) anthony explains #457
python: why is -c faster than -m? (intermediate) anthony explains #222
Sponsored
View Detailed Profile
is python with types faster? (intermediate) anthony explains #126

is python with types faster? (intermediate) anthony explains #126

today I talk about whether adding

python typing: Generator[T, S, R] (intermediate) anthony explains #297

python typing: Generator[T, S, R] (intermediate) anthony explains #297

today I talk about the three generic

python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365

python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365

today I talk about explicit

python TypeGuard (PEP 647) (intermediate) anthony explains #439

python TypeGuard (PEP 647) (intermediate) anthony explains #439

today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ...

how I sped up python by 20ms (intermediate) anthony explains #417

how I sped up python by 20ms (intermediate) anthony explains #417

today I show the tools and processes I used to improve

Sponsored
python typing: object vs Any (intermediate) anthony explains #275

python typing: object vs Any (intermediate) anthony explains #275

today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ...

the fastest python startup with `python -S` (intermediate) anthony explains #411

the fastest python startup with `python -S` (intermediate) anthony explains #411

today I talk about the absolutely-

python typing: TYPE_CHECKING (intermediate) anthony explains #312

python typing: TYPE_CHECKING (intermediate) anthony explains #312

today I show you what the `TYPE_CHECKING` constant is in the typing module and why you would ever use it! - circular imports ...

typing: Protocol + @runtime_checkable (intermediate) anthony explains #187

typing: Protocol + @runtime_checkable (intermediate) anthony explains #187

today I follow up to the video about Protocol and show @runtime_checkable for doing some light structural

python Generics (intermediate) anthony explains #430

python Generics (intermediate) anthony explains #430

today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ...

how I made my import sorter 7x faster (intermediate) anthony explains #457

how I made my import sorter 7x faster (intermediate) anthony explains #457

and I actually went a bit further after recording! (it now can reorder all of pre-commit

python: why is -c faster than -m? (intermediate) anthony explains #222

python: why is -c faster than -m? (intermediate) anthony explains #222

today I answer an interesting question which surprised me -- why

python typing: Final / @final (intermediate) anthony explains #132

python typing: Final / @final (intermediate) anthony explains #132

today I talk about the several uses of Final / @final when typing