summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorVlad Serebrennikov <brainvlad@gmail.com>2020-04-30 04:06:39 +0300
committerGitHub <noreply@github.com>2020-04-29 18:06:39 -0700
commit138a9b9c2a394f30f222c23391f9515a7df9d809 (patch)
tree04e0c2277414db12ea5a2acdc3cdf867f16db613 /Misc
parentb1e11c31c523dc082985e9de779ceeb47224e536 (diff)
downloadcpython-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.rst1
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