mirror of https://github.com/python/cpython
gh-119698: symtable: Fix merge race (#120779)
This commit is contained in:
parent
b8a8e04fec
commit
3846fcfb92
|
@ -250,7 +250,7 @@ class Class(SymbolTable):
|
|||
match st.type:
|
||||
case _symtable.TYPE_FUNCTION:
|
||||
d[st.name] = 1
|
||||
case _symtable.TYPE_TYPE_PARAM:
|
||||
case _symtable.TYPE_TYPE_PARAMETERS:
|
||||
# Get the function-def block in the annotation
|
||||
# scope 'st' with the same identifier, if any.
|
||||
scope_name = st.name
|
||||
|
|
Loading…
Reference in New Issue