mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
plistlib: fix arg name, add exception (#3861)
This commit is contained in:
@@ -30,10 +30,10 @@ if sys.version_info >= (3, 4):
|
||||
def load(fp: IO[bytes], *, fmt: Optional[PlistFormat] = ...,
|
||||
use_builtin_types: bool = ..., dict_type: Type[_D] = ...) -> _D: ...
|
||||
@overload
|
||||
def loads(data: bytes, *, fmt: Optional[PlistFormat] = ...,
|
||||
def loads(value: bytes, *, fmt: Optional[PlistFormat] = ...,
|
||||
use_builtin_types: bool = ...) -> DictT[str, Any]: ...
|
||||
@overload
|
||||
def loads(data: bytes, *, fmt: Optional[PlistFormat] = ...,
|
||||
def loads(value: bytes, *, fmt: Optional[PlistFormat] = ...,
|
||||
use_builtin_types: bool = ..., dict_type: Type[_D] = ...) -> _D: ...
|
||||
def dump(value: Mapping[str, Any], fp: IO[bytes], *,
|
||||
fmt: PlistFormat = ..., sort_keys: bool = ...,
|
||||
@@ -71,3 +71,6 @@ if sys.version_info >= (3, 8):
|
||||
def __index__(self) -> int: ...
|
||||
def __reduce__(self) -> Any: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
class InvalidFileException(ValueError):
|
||||
def __init__(self, message: str = ...) -> None: ...
|
||||
|
||||
@@ -582,7 +582,6 @@ pickle.Unpickler.find_class
|
||||
pickle.Unpickler.persistent_load
|
||||
pipes.Template.copy
|
||||
pkgutil.ImpImporter.__init__
|
||||
plistlib.loads
|
||||
poplib.POP3_SSL.stls
|
||||
posix.EX_NOTFOUND
|
||||
posix.sched_param._asdict
|
||||
|
||||
Reference in New Issue
Block a user