WebOb: CacheControl descriptors are always allowed to accept None (#11288)

This commit is contained in:
David Salvisberg
2024-01-27 08:54:13 +01:00
committed by GitHub
parent 7c2d0f1a50
commit d3b45a4de9

View File

@@ -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