8000 Deprecate `_typeshed.Supports{Read,Write}` by srittau · Pull Request #14149 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Deprecate _typeshed.Supports{Read,Write} #14149

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed May 26, 2025
commit ac1aa79b5a431f5a86b5dc2e515fc07ab9b79fc0
6 changes: 1 addition & 5 deletions stdlib/_pickle.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ class Pickler:
reducer_override: Callable[[Any], Any]
bin: bool # undocumented
def __init__(
self,
file: Writer[bytes],
protocol: int | None = None,
fix_imports: bool = True,
buffer_callback: _BufferCallback = None,
self, file: Writer[bytes], protocol: int | None = None, fix_imports: bool = True, buffer_callback: _BufferCallback = None
) -> None: ...
@property
def memo(self) -> PicklerMemoProxy: ...
Expand Down
6 changes: 1 addition & 5 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1771,11 +1771,7 @@ class _SupportsWriteAndFlush(Writer[_T_contra], SupportsFlush, Protocol[_T_contr

@overload
def print(
*values: object,
sep: str | None = " ",
end: str | None = "\n",
file: Writer[str] | None = None,
flush: Literal[False] = False,
*values: object, sep: str | None = " ", end: str | None = "\n", file: Writer[str] | None = None, flush: Literal[False] = False
) -> None: ...
@overload
def print(
Expand Down
7 changes: 1 addition & 6 deletions stdlib/email/generator.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ class Generator(Generic[_MessageT]):
) -> None: ...
@overload
def __init__(
self,
outfp: Writer[str],
mangle_from_: bool | None = None,
maxheaderlen: int | None = None,
*,
policy: Policy[_MessageT],
self, outfp: Writer[str], mangle_from_: bool | None = None, maxheaderlen: int | None = None, *, policy: Policy[_MessageT]
) -> None: ...
def write(self, s: str) -> None: ...
def flatten(self, msg: _MessageT, unixfrom: bool = False, linesep: str | None = None) -> None: ...
Expand Down
4 changes: 1 addition & 3 deletions stdlib/xml/dom/minidom.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class _DOMErrorHandler(Protocol):
class _UserDataHandler(Protocol):
def handle(self, operation: int, key: str, data: Any, src: Node, dst: Node) -> None: ...

def parse(
file: str | Reader[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None
) -> Document: ...
def parse(file: str | Reader[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None) -> Document: ...
def parseString(string: str | ReadableBuffer, parser: XMLReader | None = None) -> Document: ...
@overload
def getDOMImplementation(features: None = None) -> DOMImplementation: ...
Expand Down
0