[issue43609] ast.unparse-ing a FunctionType gives ambiguous result

midori report at bugs.python.org
Thu Mar 25 15:55:08 EDT 2021


midori <cleoold at member.fsf.org> added the comment:

@BTaskaya I've seen this in third party ides and type checker. For example they are referring to "Union[Callable[[], Union[int, str]], None]" as "() -> (int | str) | None" where there are parentheses around the returns.

----------

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


More information about the Python-bugs-list mailing list