/explore
|
You are here |
rednafi.com | ||
| | | | |
adl1995.github.io
|
|
| | | | | ||
| | | | |
yotam.net
A blog about free software and programming |
|
| | | | | ||
| | | | |
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). |
|
| | | | | ||
| | | | |
blog.derlin.ch
PEP 563 is activated as soon as you import future annotations. This turns annotations to strings, changing the way we read type information at runtime. |
|
| | | |||