diff options
author | Erlend E. Aasland <erlend@python.org> | 2024-02-15 13:21:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 13:21:31 (GMT) |
commit | a0149fa6cf5792728bb18ee8e63f6f43b1c96934 (patch) | |
tree | d06325e0526ca00ac4632587e5903e87447c1230 /Tools/clinic | |
parent | 7f074a771bc4e3e299799fabf9b054a03f6693d2 (diff) | |
download | cpython-a0149fa6cf5792728bb18ee8e63f6f43b1c96934.zip cpython-a0149fa6cf5792728bb18ee8e63f6f43b1c96934.tar.gz cpython-a0149fa6cf5792728bb18ee8e63f6f43b1c96934.tar.bz2 |
gh-113317: Argument Clinic: remove global clinic instance (#115517)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-x | Tools/clinic/clinic.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 4fa07ee..77d492a 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -277,7 +277,7 @@ class Language(metaclass=abc.ABCMeta): @abc.abstractmethod def render( self, - clinic: Clinic | None, + clinic: Clinic, signatures: Iterable[Module | Class | Function] ) -> str: ... @@ -630,7 +630,7 @@ class CLanguage(Language): def render( self, - clinic: Clinic | None, + clinic: Clinic, signatures: Iterable[Module | Class | Function] ) -> str: function = None @@ -1584,7 +1584,7 @@ class CLanguage(Language): def render_function( self, - clinic: Clinic | None, + clinic: Clinic, f: Function | None ) -> str: if f is None or clinic is None: @@ -2220,7 +2220,6 @@ class Parser(Protocol): def parse(self, block: Block) -> None: ... -clinic: Clinic | None = None class Clinic: presets_text = """ @@ -2345,9 +2344,6 @@ impl_definition block assert name in self.destination_buffers preset[name] = buffer - global clinic - clinic = self - def add_include(self, name: str, reason: str, *, condition: str | None = None) -> None: try: |