Fix several new-in-3.11 stubtest errors (#7973)

This commit is contained in:
Alex Waygood
2022-06-03 02:07:38 +01:00
committed by GitHub
parent cb9023988d
commit acc0167dc1
12 changed files with 195 additions and 85 deletions

View File

@@ -45,6 +45,9 @@ class Template:
def __init__(self, template: str) -> None: ...
def substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
def safe_substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
if sys.version_info >= (3, 11):
def get_identifiers(self) -> list[str]: ...
def is_valid(self) -> bool: ...
# TODO(MichalPokorny): This is probably badly and/or loosely typed.
class Formatter: