mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
update for the new patch releases (#13196)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from collections.abc import Callable, Iterator, MutableMapping
|
||||
from typing import IO, Any
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -40,7 +41,13 @@ def read_uint8(f: IO[bytes]) -> int: ...
|
||||
|
||||
uint8: ArgumentDescriptor
|
||||
|
||||
def read_stringnl(f: IO[bytes], decode: bool = True, stripquotes: bool = True) -> bytes | str: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def read_stringnl(
|
||||
f: IO[bytes], decode: bool = True, stripquotes: bool = True, *, encoding: str = "latin-1"
|
||||
) -> bytes | str: ...
|
||||
|
||||
else:
|
||||
def read_stringnl(f: IO[bytes], decode: bool = True, stripquotes: bool = True) -> bytes | str: ...
|
||||
|
||||
stringnl: ArgumentDescriptor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user