|
You are here |
blog.meadsteve.dev | ||
| | | | |
switowski.com
|
|
| | | | | Continue the magic functions journey and create a cell magic function that checks type hints in IPython. | |
| | | | |
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. | ||