diff options
| author | Vlad Serebrennikov <brainvlad@gmail.com> | 2020-04-30 04:06:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-29 18:06:39 -0700 |
| commit | 138a9b9c2a394f30f222c23391f9515a7df9d809 (patch) | |
| tree | 04e0c2277414db12ea5a2acdc3cdf867f16db613 /Misc | |
| parent | b1e11c31c523dc082985e9de779ceeb47224e536 (diff) | |
| download | cpython-git-138a9b9c2a394f30f222c23391f9515a7df9d809.tar.gz | |
bpo-40389: Improve repr of typing.Optional (#19714)
Diffstat (limited to 'Misc')
| -rw-r--r-- | Misc/NEWS.d/next/Library/2020-04-25-20-00-58.bpo-40389.FPA6f0.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-25-20-00-58.bpo-40389.FPA6f0.rst b/Misc/NEWS.d/next/Library/2020-04-25-20-00-58.bpo-40389.FPA6f0.rst new file mode 100644 index 0000000000..e7a60a8d5f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-04-25-20-00-58.bpo-40389.FPA6f0.rst @@ -0,0 +1 @@ +``repr()`` now returns ``typing.Optional[T]`` when called for ``typing.Union`` of two types, one of which is ``NoneType``.
\ No newline at end of file |
