mirror of
https://github.com/python/cpython
synced 2024-09-15 21:40:06 +00:00
gh-112213: Add missing declaration of target_critical_section (gh-112374)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
e9d1360c9a
commit
4ec849bba8
|
@ -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 @@ def reset(self) -> None:
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue