[issue40389] No straightforward way to get repr of Optional

2020-04-29 Thread Guido van Rossum
Change by Guido van Rossum : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40389] No straightforward way to get repr of Optional

2020-04-29 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 138a9b9c2a394f30f222c23391f9515a7df9d809 by Vlad Serebrennikov in branch 'master': bpo-40389: Improve repr of typing.Optional (#19714) https://github.com/python/cpython/commit/138a9b9c2a394f30f222c23391f9515a7df9d809 -- nosy:

[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

[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 source code is not