mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-119180: PEP 649 compiler changes (#119361)
This commit is contained in:
parent
02c1dfff07
commit
9b8611eeea
28 changed files with 610 additions and 329 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue