11import sys
22from _typeshed import (
3+ ReadableBuffer ,
34 SupportsAdd ,
45 SupportsGetItem ,
56 SupportsMod ,
@@ -12,7 +13,7 @@ from _typeshed import (
1213)
1314from collections .abc import Callable , Container , Iterable , MutableMapping , MutableSequence , Sequence
1415from operator import attrgetter as attrgetter , itemgetter as itemgetter , methodcaller as methodcaller
15- from typing import Any , AnyStr , ParamSpec , Protocol , SupportsAbs , SupportsIndex , TypeAlias , TypeVar , overload , type_check_only
16+ from typing import Any , ParamSpec , Protocol , SupportsAbs , SupportsIndex , TypeAlias , TypeVar , overload , type_check_only
1617from typing_extensions import TypeIs
1718
1819_R = TypeVar ("_R" )
@@ -150,7 +151,10 @@ def ixor(a, b, /): ...
150151if sys .version_info >= (3 , 11 ):
151152 def call (obj : Callable [_P , _R ], / , * args : _P .args , ** kwargs : _P .kwargs ) -> _R : ...
152153
153- def _compare_digest (a : AnyStr , b : AnyStr , / ) -> bool : ...
154+ @overload
155+ def _compare_digest (a : ReadableBuffer , b : ReadableBuffer , / ) -> bool : ...
156+ @overload
157+ def _compare_digest (a : str , b : str , / ) -> bool : ...
154158
155159if sys .version_info >= (3 , 14 ):
156160 def is_none (a : object , / ) -> TypeIs [None ]: ...
0 commit comments