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,4 +1,4 @@
from _typeshed import Incomplete
from _typeshed import Incomplete, Unused
from collections.abc import Callable
from types import ModuleType
from typing import Any, Generic, TypeVar, overload
@@ -17,9 +17,9 @@ class NonDataProperty(Generic[_T]):
fget: Callable[..., _T]
def __init__(self, fget: Callable[..., _T]) -> None: ...
@overload
def __get__(self, obj: None, objtype: object = ...) -> Self: ...
def __get__(self, obj: None, objtype: Unused = None) -> Self: ...
@overload
def __get__(self, obj: Any, objtype: object = ...) -> _T: ...
def __get__(self, obj: Any, objtype: Unused = None) -> _T: ...
class test(Command):
description: str