/explore
|
You are here |
blog.meadsteve.dev | ||
| | | | |
adamj.eu
In a type hint, if we specify a type (class), then we mark the variable as containing an instance of that type. To specify that a variable instead contains a type, we need to use type[Cls] (or the old syntax typing.Type). |
|
| | | | | ||
| | | | |
borutzki.github.io
Sometimes a function takes multiple arguments of different types, and the return type depends on specific combinations of inputs. It's often easy to understand by reading code, but how do you tell the type checker that this is the case? This is where the @overload decorator from the typing module comes handy. |
|
| | | | | ||
| | | | |
yotam.net
A blog about free software and programming |
|
| | | | | ||
| | | | |
jamie-wong.com
[AI summary] The post analyzes the tradeoffs between dynamically and statically typed programming languages regarding iteration speed, correctness, and IDE support, discussing how modern languages and techniques are attempting to combine the best aspects of both approaches. |
|
| | | |||