mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 12:56:51 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user