]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119698: symtable: Fix merge race (#120779)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Thu, 20 Jun 2024 05:42:30 +0000 (22:42 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2024 05:42:30 +0000 (05:42 +0000)
Lib/symtable.py

index fee3c43163f6c22b0daa5275fc1e8fc8beef0904..221aaf88d4167024537348831637265fab637e70 100644 (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