stdlib: Add defaults for positional-only parameters (#9655)

This commit is contained in:
Alex Waygood
2023-02-01 21:44:08 +00:00
committed by GitHub
parent 35172c7aab
commit 1d7dda7fa1
30 changed files with 159 additions and 155 deletions

View File

@@ -24,14 +24,14 @@ _Model: TypeAlias = tuple[int, int, str | None, tuple[Any, ...]]
@final
class XMLParserType:
def Parse(self, __data: str | ReadableBuffer, __isfinal: bool = ...) -> int: ...
def Parse(self, __data: str | ReadableBuffer, __isfinal: bool = False) -> int: ...
def ParseFile(self, __file: SupportsRead[bytes]) -> int: ...
def SetBase(self, __base: str) -> None: ...
def GetBase(self) -> str | None: ...
def GetInputContext(self) -> bytes | None: ...
def ExternalEntityParserCreate(self, __context: str | None, __encoding: str = ...) -> XMLParserType: ...
def SetParamEntityParsing(self, __flag: int) -> int: ...
def UseForeignDTD(self, __flag: bool = ...) -> None: ...
def UseForeignDTD(self, __flag: bool = True) -> None: ...
@property
def intern(self) -> dict[str, str]: ...
buffer_size: int