New submission from Anthony Sottile <asott...@umich.edu>:

def f():
    def g(arg: int, /):
        pass

f()


$ python3.9 t2.py
Traceback (most recent call last):
  File "/home/asottile/workspace/t2.py", line 5, in <module>
    f()
  File "/home/asottile/workspace/t2.py", line 2, in f
    def g(arg: int, /):
SystemError: no locals when loading 'int'

Originally from this StackOverflow post: 
https://stackoverflow.com/q/59594494/812183

----------
components: Interpreter Core
messages: 359312
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: Type Annotation of nested function with positional only arguments 
triggers SystemError
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39215>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to