Skip to content
Open
Changes from all commits
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
4 changes: 4 additions & 0 deletions stdlib/_operator.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from _typeshed import (
ReadableBuffer,
SupportsAdd,
SupportsGetItem,
SupportsMod,
Expand Down Expand Up @@ -150,6 +151,9 @@ def ixor(a, b, /): ...
if sys.version_info >= (3, 11):
def call(obj: Callable[_P, _R], /, *args: _P.args, **kwargs: _P.kwargs) -> _R: ...

@overload
def _compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool: ...
@overload
def _compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can now simplify the second overload to take str instead of AnyStr, right?


if sys.version_info >= (3, 14):
Expand Down