Media Summary: today I talk about one of my favorite additions to typing: today I talk about the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ... today I talk about the decorator for typing and how it can be used to signal typed-dispatch to a type checker!

Structural Subtyping In Python With Protocol Intermediate Anthony Explains 164 - Detailed Analysis & Overview

today I talk about one of my favorite additions to typing: today I talk about the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ... today I talk about the decorator for typing and how it can be used to signal typed-dispatch to a type checker! today I talk about a common workaround for cyclic mypy types using today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... 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 we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I go over the brand-new and controversial `match` statement in today I to into detail about data descriptors, non-data descriptors, what the point of them is, as well as a quick example! playlist: ... today I talk about the basics of generator functions and how you'd type annotate them! playlist: ... today I go over all the tools I use to set up my projects, as well as the differences between 1-file libraries, multi-file libraries, and ... today I talk about the __import__ builtin in

oops spoiler in the thumbnail it's str.partition, oh well -- I today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ... today I talk about explicit type aliases in 3.10 is coming! here's the new things to look out for! - top 10 new things in

Photo Gallery

structural subtyping in python with Protocol! (intermediate) anthony explains #164
python typing: Generator[T, S, R] (intermediate) anthony explains #297
typing: Protocol + @runtime_checkable (intermediate) anthony explains #187
python typing: @overload (intermediate) anthony explains #163
mypy: possible cyclic definition fix (intermediate) anthony explains #379
What are "Protocols" In Python? (Tutorial 2023)
python typing: object vs Any (intermediate) anthony explains #275
debugging mypy types (beginner - intermediate) anthony explains #299
python TypeGuard (PEP 647) (intermediate) anthony explains #439
python match statement (PEP 634) (intermediate - advanced) anthony explains #250
python descriptors! (advanced) anthony explains #519
generator basics (+typing) (beginner - intermediate) anthony explains #077
View Detailed Profile
structural subtyping in python with Protocol! (intermediate) anthony explains #164

structural subtyping in python with Protocol! (intermediate) anthony explains #164

today I talk about one of my favorite additions to typing:

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 types of `typing.Generator` and what send / return type mean. - generator basics: ...

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

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

today I follow up to the video about

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!

mypy: possible cyclic definition fix (intermediate) anthony explains #379

mypy: possible cyclic definition fix (intermediate) anthony explains #379

today I talk about a common workaround for cyclic mypy types using

What are "Protocols" In Python? (Tutorial 2023)

What are "Protocols" In Python? (Tutorial 2023)

What are

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

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

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 match statement (PEP 634) (intermediate - advanced) anthony explains #250

python match statement (PEP 634) (intermediate - advanced) anthony explains #250

today I go over the brand-new and controversial `match` statement in

python descriptors! (advanced) anthony explains #519

python descriptors! (advanced) anthony explains #519

today I to into detail about data descriptors, non-data descriptors, what the point of them is, as well as a quick example! playlist: ...

generator basics (+typing) (beginner - intermediate) anthony explains #077

generator basics (+typing) (beginner - intermediate) anthony explains #077

today I talk about the basics of generator functions and how you'd type annotate them! playlist: ...

my python project setup (+ all tools) (intermediate) anthony explains #396

my python project setup (+ all tools) (intermediate) anthony explains #396

today I go over all the tools I use to set up my projects, as well as the differences between 1-file libraries, multi-file libraries, and ...

using the python __import__ builtin correctly (intermediate) anthony explains #064

using the python __import__ builtin correctly (intermediate) anthony explains #064

today I talk about the __import__ builtin in

my favorite python str method! (beginner - intermediate) anthony explains #003

my favorite python str method! (beginner - intermediate) anthony explains #003

oops spoiler in the thumbnail it's str.partition, oh well -- I

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

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

top 10 new things in python 3.10 (beginner - intermediate) anthony explains #289

top 10 new things in python 3.10 (beginner - intermediate) anthony explains #289

3.10 is coming! here's the new things to look out for! - top 10 new things in