Media Summary: today I talk about the basics of generator functions and how you'd 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 show you what the `TYPE_CHECKING` constant is in the typing module and why you would ever use it! - circular imports ...

How I Find Standard Python Type Signatures Beginner Intermediate Anthony Explains 266 - Detailed Analysis & Overview

today I talk about the basics of generator functions and how you'd 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 show you what the `TYPE_CHECKING` constant is in the typing module and why you would ever use it! - circular imports ... today I talk about gradual typing, what that means for mypy, and the settings I tend to use when I'm adding today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... today I talk about Optional and a few approaches to typing the return value of `re.match` (which returns an Optional[Match[str]])!

today I follow up to the video about Protocol and show for doing some light structural today I talk about why I pick -˃ int for return values for main functions instead of -˃ None (which works)! - testable command lines: ... today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ... oh hey, it's episode 100! today I talk about one of my favorite ways to make plain-old-data classes in today I talk about the several uses of Final / when typing today I talk about floating point math and how it can appear "broken" -- I also show you several solutions to the problem in

Photo Gallery

how I find standard python type signatures (beginner - intermediate) anthony explains #266
python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365
generator basics (+typing) (beginner - intermediate) anthony explains #077
typing Self (PEP 673) (intermediate) anthony explains #418
python typing: TYPE_CHECKING (intermediate) anthony explains #312
gradual typing python (and my approach) (beginner - intermediate) anthony explains #308
is python with types faster? (intermediate) anthony explains #126
python typing: object vs Any (intermediate) anthony explains #275
python typing: re.match and Optional (intermediate) anthony explains #115
typing: Protocol + @runtime_checkable (intermediate) anthony explains #187
introduction to python typing + mypy (beginner - intermediate) anthony explains #047
typing: why main() -˃ int (beginner - intermediate) anthony explains #110
View Detailed Profile
how I find standard python type signatures (beginner - intermediate) anthony explains #266

how I find standard python type signatures (beginner - intermediate) anthony explains #266

today I talk about the strategy I use to

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

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

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

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

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

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: 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: re.match and Optional (intermediate) anthony explains #115

python typing: re.match and Optional (intermediate) anthony explains #115

today I talk about Optional and a few approaches to typing the return value of `re.match` (which returns an Optional[Match[str]])!

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

introduction to python typing + mypy (beginner - intermediate) anthony explains #047

introduction to python typing + mypy (beginner - intermediate) anthony explains #047

today I show a quick introduction 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: ...

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: Literal (intermediate) anthony explains #170

python typing: Literal (intermediate) anthony explains #170

today we talk about the `Literal`

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

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

today we talk about

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

intro to python namedtuples! (beginner - intermediate) anthony explains #100

intro to python namedtuples! (beginner - intermediate) anthony explains #100

oh hey, it's episode 100! today I talk about one of my favorite ways to make plain-old-data classes in

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

floats are broken? (+3 solutions in python!) (beginner - intermediate) anthony explains #265

floats are broken? (+3 solutions in python!) (beginner - intermediate) anthony explains #265

today I talk about floating point math and how it can appear "broken" -- I also show you several solutions to the problem in

python typing: Optional is not optional! (intermediate) anthony explains #146

python typing: Optional is not optional! (intermediate) anthony explains #146

today I talk about the Optional