massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / _weakrefset.pyi
1 from typing import Iterator, Any, Iterable, MutableSet, Optional, TypeVar, Generic, Union\r
2 \r
3 _S = TypeVar('_S')\r
4 _T = TypeVar('_T')\r
5 _SelfT = TypeVar('_SelfT', bound=WeakSet)\r
6 \r
7 class WeakSet(MutableSet[_T], Generic[_T]):\r
8     def __init__(self, data: Optional[Iterable[_T]] = ...) -> None: ...\r
9 \r
10     def add(self, item: _T) -> None: ...\r
11     def clear(self) -> None: ...\r
12     def discard(self, item: _T) -> None: ...\r
13     def copy(self: _SelfT) -> _SelfT: ...\r
14     def pop(self) -> _T: ...\r
15     def remove(self, item: _T) -> None: ...\r
16     def update(self, other: Iterable[_T]) -> None: ...\r
17     def __contains__(self, item: object) -> bool: ...\r
18     def __len__(self) -> int: ...\r
19     def __iter__(self) -> Iterator[_T]: ...\r
20 \r
21     def __ior__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
22     def difference(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
23     def __sub__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
24     def difference_update(self: _SelfT, other: Iterable[_T]) -> None: ...\r
25     def __isub__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
26     def intersection(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
27     def __and__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
28     def intersection_update(self, other: Iterable[_T]) -> None: ...\r
29     def __iand__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\r
30     def issubset(self, other: Iterable[_T]) -> bool: ...\r
31     def __le__(self, other: Iterable[_T]) -> bool: ...\r
32     def __lt__(self, other: Iterable[_T]) -> bool: ...\r
33     def issuperset(self, other: Iterable[_T]) -> bool: ...\r
34     def __ge__(self, other: Iterable[_T]) -> bool: ...\r
35     def __gt__(self, other: Iterable[_T]) -> bool: ...\r
36     def __eq__(self, other: object) -> bool: ...\r
37     def symmetric_difference(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
38     def __xor__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
39     def symmetric_difference_update(self, other: Iterable[_S]) -> None: ...\r
40     def __ixor__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
41     def union(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
42     def __or__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\r
43     def isdisjoint(self, other: Iterable[_T]) -> bool: ...\r