summaryrefslogtreecommitdiffstats
path: root/Lib/symtable.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-06-11 13:06:49 (GMT)
committerGitHub <noreply@github.com>2024-06-11 13:06:49 (GMT)
commit9b8611eeea172cd4aa626ccd1ca333dc4093cd8c (patch)
tree93491345df33ac20e4c4e87f226ff7a7e781e465 /Lib/symtable.py
parent02c1dfff073a3dd6ce34a11b038defde291c2203 (diff)
downloadcpython-9b8611eeea172cd4aa626ccd1ca333dc4093cd8c.zip
cpython-9b8611eeea172cd4aa626ccd1ca333dc4093cd8c.tar.gz
cpython-9b8611eeea172cd4aa626ccd1ca333dc4093cd8c.tar.bz2
gh-119180: PEP 649 compiler changes (#119361)
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r--Lib/symtable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index ba2f0da..af65e93 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -222,6 +222,8 @@ class Class(SymbolTable):
if self.__methods is None:
d = {}
for st in self._table.children:
+ if st.type == _symtable.TYPE_ANNOTATION:
+ continue
d[st.name] = 1
self.__methods = tuple(d)
return self.__methods