mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 04:34:33 +08:00
Fix a few issues with parameter defaults (#9572)
This commit is contained in:
1 parent
7e40d70cad
commit
d98d1674e7
10 files changed
+37
-30
No files matched your search
@@ -11,11 +11,15 @@ class Parser:
|
||||
def parse(self, fp: TextIO, headersonly: bool = False) -> Message: ...
|
||||
def parsestr(self, text: str, headersonly: bool = False) -> Message: ...
|
||||
|
||||
class HeaderParser(Parser): ...
|
||||
class HeaderParser(Parser):
|
||||
def parse(self, fp: TextIO, headersonly: bool = True) -> Message: ...
|
||||
def parsestr(self, text: str, headersonly: bool = True) -> Message: ...
|
||||
|
||||
class BytesParser:
|
||||
def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...
|
||||
def parse(self, fp: BinaryIO, headersonly: bool = False) -> Message: ...
|
||||
def parsebytes(self, text: bytes | bytearray, headersonly: bool = False) -> Message: ...
|
||||
|
||||
class BytesHeaderParser(BytesParser): ...
|
||||
class BytesHeaderParser(BytesParser):
|
||||
def parse(self, fp: BinaryIO, headersonly: bool = True) -> Message: ...
|
||||
def parsebytes(self, text: bytes | bytearray, headersonly: bool = True) -> Message: ...
|
||||
Reference in new issue
Block a user