mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -14,7 +14,10 @@ class UpdateDict(dict[str, Any]):
|
||||
updated_args: tuple[Any, ...] | None
|
||||
|
||||
class exists_property(Generic[_ScopeT]):
|
||||
def __init__(self, prop: str, type: _ScopeT = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self: exists_property[None], prop: str) -> None: ...
|
||||
@overload
|
||||
def __init__(self, prop: str, type: _ScopeT) -> None: ...
|
||||
@overload
|
||||
def __get__(self, obj: None, type: type[CacheControl[Any]] | None = None) -> Self: ...
|
||||
@overload
|
||||
@@ -31,7 +34,7 @@ class exists_property(Generic[_ScopeT]):
|
||||
def __delete__(self, obj: CacheControl[_ScopeT]) -> None: ...
|
||||
|
||||
class value_property(Generic[_T, _DefaultT, _NoneLiteral, _ScopeT]):
|
||||
def __init__(self, prop: str, default: _DefaultT = ..., none: _NoneLiteral = ..., type: _ScopeT = ...) -> None: ...
|
||||
def __init__(self, prop: str, default: _DefaultT = None, none: _NoneLiteral = None, type: _ScopeT = None) -> None: ... # type: ignore[assignment]
|
||||
@overload
|
||||
def __get__(self, obj: None, type: type[CacheControl[Any]] | None = None) -> Self: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user