Media Summary: today I talk about explicit type aliases in today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today we introduce another typing / mypy concept:

Python Variadic Generics Pep 646 Intermediate Advanced Anthony Explains 433 - Detailed Analysis & Overview

today I talk about explicit type aliases in today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today we introduce another typing / mypy concept: today I talk about the approach I take to gradual typing in today I talk about the addition of `typing.Self` in python3.11 and why it's useful as well as several workarounds for older today I follow up to the video about Protocol and show for doing some light structural type checking at ...

today I talk about typing the two types of starargs and why it's tricky / impossible to get correct - intro to typing / mypy: ... today I talk about gradual typing, what that means for mypy, and the settings I tend to use when I'm adding types to a codebase ... today we're back talking about typing in mypy -- I show you two ways to debug types during type checking as well as a hint about ... today I talk about whether adding type annotations to today I talk about why I pick -˃ int for return values for main functions instead of -˃ None (which works)! - testable command lines: ... today I talk about a bit of a hidden gem in

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 ... old man yells at walrus -- I show some weird (intentional) scoping issues with comprehensions! playlist: ... today I go over all of the various argument/parameter types for today we talk about type aliases -- a nifty way to shorten some verbose type names or expose a named "type" playlist: ... today I talk about the decorator for typing and how it can be used to signal typed-dispatch to a type checker!

Photo Gallery

python variadic generics (PEP 646) (intermediate - advanced) anthony explains #433
python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365
python TypeGuard (PEP 647) (intermediate) anthony explains #439
python Generics (intermediate) anthony explains #430
opinion: don't bother typing tests (intermediate) anthony explains #347
typing Self (PEP 673) (intermediate) anthony explains #418
typing: Protocol + @runtime_checkable (intermediate) anthony explains #187
python: typing *args / **kwargs (intermediate) anthony explains #145
gradual typing python (and my approach) (beginner - intermediate) anthony explains #308
debugging mypy types (beginner - intermediate) anthony explains #299
is python with types faster? (intermediate) anthony explains #126
typing: why main() -˃ int (beginner - intermediate) anthony explains #110
View Detailed Profile
python variadic generics (PEP 646) (intermediate - advanced) anthony explains #433

python variadic generics (PEP 646) (intermediate - advanced) anthony explains #433

today we go over the brand new

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 type aliases in

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: ...

python Generics (intermediate) anthony explains #430

python Generics (intermediate) anthony explains #430

today we introduce another typing / mypy concept:

opinion: don't bother typing tests (intermediate) anthony explains #347

opinion: don't bother typing tests (intermediate) anthony explains #347

today I talk about the approach I take to gradual typing in

typing Self (PEP 673) (intermediate) anthony explains #418

typing Self (PEP 673) (intermediate) anthony explains #418

today I talk about the addition of `typing.Self` in python3.11 and why it's useful as well as several workarounds for older

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 type checking at ...

python: typing *args / **kwargs (intermediate) anthony explains #145

python: typing *args / **kwargs (intermediate) anthony explains #145

today I talk about typing the two types of starargs and why it's tricky / impossible to get correct - intro to typing / mypy: ...

gradual typing python (and my approach) (beginner - intermediate) anthony explains #308

gradual typing python (and my approach) (beginner - intermediate) anthony explains #308

today I talk about gradual typing, what that means for mypy, and the settings I tend to use when I'm adding types to a codebase ...

debugging mypy types (beginner - intermediate) anthony explains #299

debugging mypy types (beginner - intermediate) anthony explains #299

today we're back talking about typing in mypy -- I show you two ways to debug types during type checking as well as a hint about ...

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

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

today I talk about whether adding type annotations to

typing: why main() -˃ int (beginner - intermediate) anthony explains #110

typing: why main() -˃ int (beginner - intermediate) anthony explains #110

today I talk about why I pick -˃ int for return values for main functions instead of -˃ None (which works)! - testable command lines: ...

easy fake objects with python's SimpleNamespace (beginner - intermediate) anthony explains #143

easy fake objects with python's SimpleNamespace (beginner - intermediate) anthony explains #143

today I talk about a bit of a hidden gem in

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: ...

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 ...

python comprehensions leak scope again (intermediate) anthony explains #432

python comprehensions leak scope again (intermediate) anthony explains #432

old man yells at walrus -- I show some weird (intentional) scoping issues with comprehensions! playlist: ...

all python argument / parameter types (beginner - intermediate) anthony explains #021

all python argument / parameter types (beginner - intermediate) anthony explains #021

today I go over all of the various argument/parameter types for

python typing: aliases (beginner - intermediate) anthony explains #180

python typing: aliases (beginner - intermediate) anthony explains #180

today we talk about type aliases -- a nifty way to shorten some verbose type names or expose a named "type" playlist: ...

python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247

python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247

today I talk about exception handling in

python typing: @overload (intermediate) anthony explains #163

python typing: @overload (intermediate) anthony explains #163

today I talk about the @overload decorator for typing and how it can be used to signal typed-dispatch to a type checker!