]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24017)
authorAndre Delfino <adelfino@gmail.com>
Thu, 31 Dec 2020 13:10:10 +0000 (10:10 -0300)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 13:10:10 +0000 (15:10 +0200)
(cherry picked from commit 2edfc86f69d8a74f4821974678f664ff94a9dc22)

Doc/library/symtable.rst

index 3efdecb5af7102f19bff70c342c38c6b9c0f9b3e..e364232247c2004fda1b5534c9658c5e985e1e96 100644 (file)
@@ -156,6 +156,12 @@ Examining Symbol Tables
 
       Return ``True`` if the symbol is local to its block.
 
+   .. method:: is_annotated()
+
+      Return ``True`` if the symbol is annotated.
+
+      .. versionadded:: 3.6
+
    .. method:: is_free()
 
       Return ``True`` if the symbol is referenced in its block, but not assigned