8000 plistlib: improve bytes handling by sobolevn · Pull Request #9048 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

plistlib: improve bytes handling #9048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2022
commit 7d6ac551e24cf2849005956a814cff48bddd05a1
6 changes: 4 additions & 2 deletions stdlib/plistlib.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from _typeshed import Self, ReadableBuffer
from _typeshed import ReadableBuffer, Self
from collections.abc import Mapping, MutableMapping
from datetime import datetime
from enum import Enum
Expand Down Expand Up @@ -48,7 +48,9 @@ FMT_BINARY = PlistFormat.FMT_BINARY

if sys.version_info >= (3, 9):
def load(fp: IO[bytes], *, fmt: PlistFormat | None = ..., dict_type: type[MutableMapping[str, Any]] = ...) -> Any: ...
def loads(value: ReadableBuffer, *, fmt: PlistFormat | None = ..., dict_type: type[MutableMapping[str, Any]] = ...) -> Any: ...
def loads(
value: ReadableBuffer, *, fmt: PlistFormat | None = ..., dict_type: type[MutableMapping[str, Any]] = ...
) -> Any: ...

else:
def load(
Expand Down
0