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!