This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author levkivskyi
Recipients gvanrossum, levkivskyi
Date 2018-03-24.18:16:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521915362.58.0.467229070634.issue33133@psf.upfronthosting.co.za>
In-reply-to
Content
Currently this code

def f(x: int = None):
    pass

get_type_hints(f)

returns {'x': Optional[int]}. I propose to abandon this behaviour. Although there is not yet a definitive decision about this aspect of PEP 484, see https://github.com/python/typing/issues/275, I think at least at runtime we should not do this.
History
Date User Action Args
2018-03-24 18:16:02levkivskyisetrecipients: + levkivskyi, gvanrossum
2018-03-24 18:16:02levkivskyisetmessageid: <1521915362.58.0.467229070634.issue33133@psf.upfronthosting.co.za>
2018-03-24 18:16:02levkivskyilinkissue33133 messages
2018-03-24 18:16:02levkivskyicreate