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