plistlib: fix arg name, add exception (#3861)

This commit is contained in:
Shantanu
2020-03-18 02:38:19 -07:00
committed by GitHub
parent 814cf53597
commit 56e2e475e9
2 changed files with 5 additions and 3 deletions

View File

@@ -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: ...

View File

@@ -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