Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+5 -2
View File
@@ -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