diff --git a/builtins/2.7/_bisect.pyi b/builtins/2.7/_bisect.pyi index 058771c05..4b6ad96e9 100644 --- a/builtins/2.7/_bisect.pyi +++ b/builtins/2.7/_bisect.pyi @@ -1,18 +1,11 @@ """Stub file for the '_bisect' module.""" -# This is an autogenerated file. It serves as a starting point -# for a more precise manual annotation of this module. -# Feel free to edit the source below, but remove this header when you do. -from typing import Any, List, Tuple, Dict, Generic +from typing import Any, Sequence, TypeVar -def bisect(a, x, *args, **kwargs) -> int: ... - -def bisect_left(a, x, *args, **kwargs) -> int: ... - -def bisect_right(a, x, *args, **kwargs) -> int: ... - -def insort(a, x, *args, **kwargs) -> None: ... - -def insort_left(a, x, *args, **kwargs) -> None: ... - -def insort_right(a, x, *args, **kwargs) -> None: ... +T = TypeVar('T') +def bisect(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> int: ... +def bisect_left(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> int: ... +def bisect_right(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> int: ... +def insort(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> None: ... +def insort_left(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> None: ... +def insort_right(a: Sequence[T], x: T, lo: int = ..., hi: int = ...) -> None: ...