Media Summary: today we introduce another typing / mypy concept: today I talk about the basics of generator functions and how you'd type annotate them! playlist: ... today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ...

Python Generics Intermediate Anthony Explains 430 - Detailed Analysis & Overview

today we introduce another typing / mypy concept: today I talk about the basics of generator functions and how you'd type annotate them! playlist: ... today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I talk about why mypy doesn't need an annotation for the first argument! - introduction to typing / mypy: ... today I talk about explicit type aliases 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 talk about what a `universal2` wheel is for macos and why it's a "2"! - what is a wheel? How's it going everyone? In today's video I'm going to be teaching you the power of 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 namespace packages, what PEP 420 is, and why I don't use namespace packages playlist: ... today I talk about __slots__ and __dict__ and how they relate to objects! playlist: ...

today I talk about insertion ordered dictionaries and when you can rely on them (cpython3.6+) and the differences between ... today I talk about a boolean trap, how you can spot one in code review, and how you can fix the problem using a few today I show how even if you don't know the operator precedence you can figure out how this evaluates! playlist: ...

Photo Gallery

python Generics (intermediate) anthony explains #430
python typing: Generator[T, S, R] (intermediate) anthony explains #297
NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561
generator basics (+typing) (beginner - intermediate) anthony explains #077
python variadic generics (PEP 646) (intermediate - advanced) anthony explains #433
python TypeGuard (PEP 647) (intermediate) anthony explains #439
don't run `python my/script.py`! (beginner - intermediate) anthony explains #407
python typing: why not self? (intermediate) anthony explains #076
python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365
typing Self (PEP 673) (intermediate) anthony explains #418
what is a universal2 wheel? (intermediate) anthony explains #447
Generics are awesome in Python
Sponsored
Sponsored
View Detailed Profile
Sponsored
Sponsored