stdlib: use bool for annotations where the default is False (#9672)

This commit is contained in:
Alex Waygood
2023-02-04 11:58:18 +00:00
committed by GitHub
parent 37a180ef7b
commit 1e3d762a12
5 changed files with 27 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ __all__ = ["encode", "decode", "encodestring", "decodestring"]
class _Input(SupportsRead[bytes], SupportsNoArgReadline[bytes], Protocol): ...
def encode(input: _Input, output: SupportsWrite[bytes], quotetabs: int, header: int = False) -> None: ...
def encodestring(s: ReadableBuffer, quotetabs: int = False, header: int = False) -> bytes: ...
def decode(input: _Input, output: SupportsWrite[bytes], header: int = False) -> None: ...
def decodestring(s: str | ReadableBuffer, header: int = False) -> bytes: ...
def encode(input: _Input, output: SupportsWrite[bytes], quotetabs: int, header: bool = False) -> None: ...
def encodestring(s: ReadableBuffer, quotetabs: bool = False, header: bool = False) -> bytes: ...
def decode(input: _Input, output: SupportsWrite[bytes], header: bool = False) -> None: ...
def decodestring(s: str | ReadableBuffer, header: bool = False) -> bytes: ...