Skip to content

Add frozenset support #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lang/en/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/en/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/es-es/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/es-es/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/fr/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/fr/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/ja/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/ja/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/ko/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/ko/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/nl/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/nl/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/zh-cn/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/zh-cn/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion lang/zh-tw/typeshed/stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])

# These definitions have special processing in mypy
class ABCMeta(type):
__abstractmethods__: set[str]
__abstractmethods__: frozenset[str]
def __init__(
self, name: str, bases: Tuple[type, ...], namespace: dict[str, Any]
) -> None: ...
Expand Down
28 changes: 28 additions & 0 deletions lang/zh-tw/typeshed/stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,34 @@ class function:
__qualname__: str
__annotations__: dict[str, Any]

class frozenset(AbstractSet[_T_co], Generic[_T_co]):
@overload
def __new__(cls: type[Self]) -> Self: ...
@overload
def __new__(cls: type[Self], __iterable: Iterable[_T_co]) -> Self: ...
def copy(self) -> FrozenSet[_T_co]: ...
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
def issubset(self, s: Iterable[object]) -> bool: ...
def issuperset(self, s: Iterable[object]) -> bool: ...
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
def __len__(self) -> int: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_T_co]: ...
def __str__(self) -> str: ...
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[_T_co | _S]: ...
def __le__(self, s: AbstractSet[object]) -> bool: ...
def __lt__(self, s: AbstractSet[object]) -> bool: ...
def __ge__(self, s: AbstractSet[object]) -> bool: ...
def __gt__(self, s: AbstractSet[object]) -> bool: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

class list(MutableSequence[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
Expand Down