Skip to content
Merged
Prev Previous commit
Next Next commit
Add list to narrowing.pyi for testTypeNarrowingStringInList
  • Loading branch information
Jordandev678 committed Jun 7, 2024
commit dae707d92357c13fef85af49796d341cfbbaabc8
3 changes: 2 additions & 1 deletion test-data/unit/fixtures/narrowing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class dict(Generic[KT, VT]): pass

def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ...]]) -> bool: pass


class list(Sequence[Tco]):
def __contains__(self, other: object) -> bool: pass
class set(Iterable[Tco], Generic[Tco]):
def __init__(self, iterable: Iterable[Tco] = ...) -> None: ...
def __contains__(self, item: object) -> bool: pass