Update Unused parameters in stubs/ (#9704)

* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
This commit is contained in:
Avasam
2023-02-22 02:52:52 -05:00
committed by GitHub
parent fbc092b4cd
commit 078c6a0958
33 changed files with 134 additions and 133 deletions

View File

@@ -1,7 +1,8 @@
from _typeshed import Unused
from collections.abc import Hashable
__all__ = ("hashkey", "methodkey", "typedkey")
def hashkey(*args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
def methodkey(self: object, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
def methodkey(self: Unused, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...
def typedkey(*args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]: ...