summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-10-14 17:01:03 (GMT)
committerGitHub <noreply@github.com>2018-10-14 17:01:03 (GMT)
commitde2aea0ff02fa9486365ce9d215bef150fae3a0b (patch)
tree83406b50dd7d3f85272bba218927d3ea0f005269 /Misc
parentbd036d3d15fc1310ccc32a43a3296b8c157ac221 (diff)
downloadcpython-de2aea0ff02fa9486365ce9d215bef150fae3a0b.zip
cpython-de2aea0ff02fa9486365ce9d215bef150fae3a0b.tar.gz
cpython-de2aea0ff02fa9486365ce9d215bef150fae3a0b.tar.bz2
bpo-34939: Allow annotated global names in module namespace (GH-9844)
Allow annotated global names in the module namespace after the symbol is declared as global. Previously, only symbols annotated before they are declared as global (i.e. inside a function) were allowed. This change allows symbols to be declared as global before the annotation happens in the global scope.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-10-13-17-40-15.bpo-34939.0gpxlJ.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-13-17-40-15.bpo-34939.0gpxlJ.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-13-17-40-15.bpo-34939.0gpxlJ.rst
new file mode 100644
index 0000000..b588f72
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-13-17-40-15.bpo-34939.0gpxlJ.rst
@@ -0,0 +1,2 @@
+Allow annotated names in module namespace that are declared global before
+the annotation happens. Patch by Pablo Galindo.