or something like that. Basically, any way to avoid writing `= None` over and over again.
Fundamentally no, at least not without some shenanigans. Type hints do
not affect the regular running of the code,
Except when they do ;-)
... depending on what counts as (valid) code ...
In Python a distinction can be made between "runnable" and "valid" :-D
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 02:07:29 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,581 |