summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2023-11-24 15:58:39 (GMT)
committerGitHub <noreply@github.com>2023-11-24 15:58:39 (GMT)
commit4ec849bba8286b2ca979f557f633582174a8c4d8 (patch)
tree9d619a8d315195510dd3f21039c8b805aad615ae
parente9d1360c9a1072aa23950b321491dc542c3a19b8 (diff)
downloadcpython-4ec849bba8286b2ca979f557f633582174a8c4d8.zip
cpython-4ec849bba8286b2ca979f557f633582174a8c4d8.tar.gz
cpython-4ec849bba8286b2ca979f557f633582174a8c4d8.tar.bz2
gh-112213: Add missing declaration of target_critical_section (gh-112374)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-rwxr-xr-xTools/clinic/clinic.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index b1dfcfe..c083086 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -5135,9 +5135,11 @@ class DSLParser:
indent: IndentStack
kind: FunctionKind
coexist: bool
+ forced_text_signature: str | None
parameter_continuation: str
preserve_output: bool
critical_section: bool
+ target_critical_section: list[str]
from_version_re = re.compile(r'([*/]) +\[from +(.+)\]')
def __init__(self, clinic: Clinic) -> None:
@@ -5169,11 +5171,11 @@ class DSLParser:
self.indent = IndentStack()
self.kind = CALLABLE
self.coexist = False
- self.forced_text_signature: str | None = None
+ self.forced_text_signature = None
self.parameter_continuation = ''
self.preserve_output = False
self.critical_section = False
- self.target_critical_section: list[str] = []
+ self.target_critical_section = []
def directive_version(self, required: str) -> None:
global version