[New-bugs-announce] [issue41613] get_type_hints regression for 3.9 and 3.10

Batuhan Taskaya report at bugs.python.org
Sat Aug 22 05:30:02 EDT 2020


New submission from Batuhan Taskaya <isidentical at gmail.com>:

The attached script works perfectly fine under Python 3.8, but it crashes in 3.9/3.10.

$ ./py38/python typing_fail.py (3.8.5+)
{'a': <class 'int'>, 'b': <class 'int'>}
$ ./py39/python typing_fail.py (3.9.0rc1+)
[SNIP]
TypeError: 'NoneType' object is not subscriptable
$ ./cpython/python typing_fail.py (3.10.0a0)
[SNIP]
TypeError: 'NoneType' object is not subscriptable

----------
files: typing_fail.py
messages: 375791
nosy: BTaskaya, gvanrossum, levkivskyi, lukasz.langa
priority: normal
severity: normal
status: open
title: get_type_hints regression for 3.9 and 3.10
Added file: https://bugs.python.org/file49421/typing_fail.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41613>
_______________________________________


More information about the New-bugs-announce mailing list