Anthony Sottile <asott...@umich.edu> added the comment:

Looking into this, it appears to be due to the default value and not due to the 
newline

I've stumbled upon two simplifications to the routines in inspect but not a fix 
for this

1. https://github.com/python/cpython/pull/21100
2. https://github.com/python/cpython/pull/21104

the following code is hit because `ast.literal_eval(...)` fails for the `|`d 
expression:

https://github.com/python/cpython/blob/2f9ada96e0d420fed0d09a032b37197f08ef167a/Lib/inspect.py#L2069-L2070

this causes the parameter to be skipped entirely

----------

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

Reply via email to