gh-119698: symtable: Fix merge race (#120779)

This commit is contained in:
Jelle Zijlstra 2024-06-19 22:42:30 -07:00 committed by GitHub
parent b8a8e04fec
commit 3846fcfb92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,7 +250,7 @@ def is_local_symbol(ident):
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