mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -7,15 +7,15 @@ from typing import BinaryIO, TextIO
|
||||
__all__ = ["Parser", "HeaderParser", "BytesParser", "BytesHeaderParser", "FeedParser", "BytesFeedParser"]
|
||||
|
||||
class Parser:
|
||||
def __init__(self, _class: Callable[[], Message] | None = ..., *, policy: Policy = ...) -> None: ...
|
||||
def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...
|
||||
def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...
|
||||
def __init__(self, _class: Callable[[], Message] | None = None, *, policy: Policy = ...) -> None: ...
|
||||
def parse(self, fp: TextIO, headersonly: bool = False) -> Message: ...
|
||||
def parsestr(self, text: str, headersonly: bool = False) -> Message: ...
|
||||
|
||||
class HeaderParser(Parser): ...
|
||||
|
||||
class BytesParser:
|
||||
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
||||
def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...
|
||||
def parsebytes(self, text: bytes | bytearray, headersonly: bool = ...) -> Message: ...
|
||||
def parse(self, fp: BinaryIO, headersonly: bool = False) -> Message: ...
|
||||
def parsebytes(self, text: bytes | bytearray, headersonly: bool = False) -> Message: ...
|
||||
|
||||
class BytesHeaderParser(BytesParser): ...
|
||||
|
||||
Reference in New Issue
Block a user