Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Nov 18, 2023
1 parent c074e16 commit 2af6600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5165,7 +5165,7 @@ def reset(self) -> None:
self.parameter_continuation = ''
self.preserve_output = False
self.critical_section = False
self.target_critical_section = None
self.target_critical_section: str | None = None

def directive_version(self, required: str) -> None:
global version
Expand Down Expand Up @@ -5294,7 +5294,7 @@ def at_classmethod(self) -> None:
fail("Can't set @classmethod, function is not a normal callable")
self.kind = CLASS_METHOD

def at_critical_section(self, target : str | None = None) -> None:
def at_critical_section(self, target: str | None = None) -> None:
if target is not None:
self.target_critical_section = target
else:
Expand Down

0 comments on commit 2af6600

Please sign in to comment.