• Aw: Re: Any possible type alias that can also set a default value for a

    From Karsten Hilbert@21:1/5 to All on Thu Oct 19 09:04:06 2023
    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

    Karsten

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)