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
1 changed files with 1 additions and 1 deletions

View File

@ -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