[issue40389] No straightforward way to get repr of Optional

2020-04-25 Thread Vladislav Serebrennikov
Change by Vladislav Serebrennikov : -- keywords: +patch pull_requests: +19036 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19714 ___ Python tracker <https://bugs.python.org/issu

[issue40389] No straightforward way to get repr of Optional

2020-04-25 Thread Vladislav Serebrennikov
New submission from Vladislav Serebrennikov : When source code is not available, "typing.Union[T, NoneType]" is what autocompletion engines left with, if they don't have additional logic to cover this case. Which is noisy compared to typing.Optional[T]. Usecase when sou