File: _weakrefset.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (14 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typing import Iterator, Any, Iterable, MutableSet, TypeVar, Generic

_T = TypeVar('_T')

class WeakSet(MutableSet[_T], Generic[_T]):
    def __init__(self, data: Iterable[_T] = ...) -> None: ...

    def add(self, x: _T) -> None: ...
    def discard(self, x: _T) -> None: ...
    def __contains__(self, x: Any) -> bool: ...
    def __len__(self) -> int: ...
    def __iter__(self) -> Iterator[_T]: ...

    # TODO: difference, difference_update, ...