Media Summary: 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 the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ... today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ...

Python Newtype Vs Aliases Intermediate Anthony Explains 368 - Detailed Analysis & Overview

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 the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ... 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 the difference between object and Any when typing things! - intro to typing / mypy: ... today I talk about the approach I take to gradual typing in today I talk about why mypy doesn't need an annotation for the first argument! - introduction 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 we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I talk more about type annotations and the difference between : X and : Type[X]! - intro to mypy: ... today we talk about the `Literal` type in 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 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 Optional and a few approaches to typing the return value of `re.match` (which returns an Optional[Match[str]])!

Photo Gallery

python: NewType vs aliases (intermediate) anthony explains #368
python typing: explicit TypeAlias (PEP 613) (intermediate) anthony explains #365
NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561
typing Self (PEP 673) (intermediate) anthony explains #418
python typing: Generator[T, S, R] (intermediate) anthony explains #297
python Generics (intermediate) anthony explains #430
python typing: object vs Any (intermediate) anthony explains #275
python typing: aliases (beginner - intermediate) anthony explains #180
python: unicode names and why they're bad (intermediate) anthony explains #356
opinion: don't bother typing tests (intermediate) anthony explains #347
python typing: why not self? (intermediate) anthony explains #076
why does id(float(1)) == id(float(2)) ??? (intermediate) anthony explains #343
View Detailed Profile
python: NewType vs aliases (intermediate) anthony explains #368

python: NewType vs aliases (intermediate) anthony explains #368

today is another

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

NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561

NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561

today we go over the new syntax added 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

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

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: 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: aliases (beginner - intermediate) anthony explains #180

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

today we talk about type

python: unicode names and why they're bad (intermediate) anthony explains #356

python: unicode names and why they're bad (intermediate) anthony explains #356

today I talk about unicode variable

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

python typing: why not self? (intermediate) anthony explains #076

python typing: why not self? (intermediate) anthony explains #076

today I talk about why mypy doesn't need an annotation for the first argument! - introduction to typing / mypy: ...

why does id(float(1)) == id(float(2)) ??? (intermediate) anthony explains #343

why does id(float(1)) == id(float(2)) ??? (intermediate) anthony explains #343

today we

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

typing: what is Type[X]? (intermediate) anthony explains #096

typing: what is Type[X]? (intermediate) anthony explains #096

today I talk more about type annotations and the difference between : X and : Type[X]! - intro to mypy: ...

python typing: Literal (intermediate) anthony explains #170

python typing: Literal (intermediate) anthony explains #170

today we talk about the `Literal` type 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!

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

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]])!