mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
WebOb: CacheControl descriptors are always allowed to accept None (#11288)
This commit is contained in:
@@ -23,7 +23,7 @@ class exists_property:
|
||||
def __get__(self, obj: None, type: _Type | None = None) -> Self: ...
|
||||
@overload
|
||||
def __get__(self, obj: Any, type: _Type | None = None) -> bool: ...
|
||||
def __set__(self, obj: Any, value: bool) -> None: ...
|
||||
def __set__(self, obj: Any, value: bool | None) -> None: ...
|
||||
def __delete__(self, obj: Any) -> None: ...
|
||||
|
||||
class value_property(Generic[_T, _NoneLiteral]):
|
||||
@@ -39,11 +39,11 @@ class value_property(Generic[_T, _NoneLiteral]):
|
||||
def __get__(self, obj: None, type: _Type | None = None) -> Self: ...
|
||||
@overload
|
||||
def __get__(self, obj: Any, type: _Type | None = None) -> _T | _NoneLiteral | None: ...
|
||||
def __set__(self, obj: Any, value: _T | Literal[True]) -> None: ...
|
||||
def __set__(self, obj: Any, value: _T | Literal[True] | None) -> None: ...
|
||||
def __delete__(self, obj: Any) -> None: ...
|
||||
|
||||
class _IntValueProperty(value_property[int, _NoneLiteral]):
|
||||
def __set__(self, obj: Any, value: int) -> None: ...
|
||||
def __set__(self, obj: Any, value: int | None) -> None: ...
|
||||
|
||||
class _BaseCacheControl:
|
||||
update_dict = UpdateDict
|
||||
|
||||
Reference in New Issue
Block a user