diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-06-11 13:06:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 13:06:49 (GMT) |
commit | 9b8611eeea172cd4aa626ccd1ca333dc4093cd8c (patch) | |
tree | 93491345df33ac20e4c4e87f226ff7a7e781e465 /Lib/symtable.py | |
parent | 02c1dfff073a3dd6ce34a11b038defde291c2203 (diff) | |
download | cpython-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.py | 2 |
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 |