/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
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).
2.4 parsecs

Travel
| |
| | 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.
3.6 parsecs

Travel
| |
| | yotam.net

A blog about free software and programming
3.2 parsecs

Travel
| |
| | 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.
20.0 parsecs

Travel
|