mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-29 22:32:11 +08:00
Added missing type annotations in various stdlib stubs. (#4402)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -13,7 +13,7 @@ class JSONDecoder:
|
||||
object_hook: Callable[[Dict[str, Any]], Any]
|
||||
parse_float: Callable[[str], Any]
|
||||
parse_int: Callable[[str], Any]
|
||||
parse_constant = ... # Callable[[str], Any]
|
||||
parse_constant: Callable[[str], Any] = ...
|
||||
strict: bool
|
||||
object_pairs_hook: Callable[[List[Tuple[str, Any]]], Any]
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ _Number = TypeVar("_Number", float, Decimal, Fraction)
|
||||
|
||||
# Used in median_high, median_low
|
||||
class _Sortable(Protocol):
|
||||
def __lt__(self, other) -> bool: ...
|
||||
def __lt__(self, other: Any) -> bool: ...
|
||||
|
||||
_SortableT = TypeVar("_SortableT", bound=_Sortable)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user