Skip to content

Commit d3b45a4

Browse files
authored
WebOb: CacheControl descriptors are always allowed to accept None (#11288)
1 parent 7c2d0f1 commit d3b45a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stubs/WebOb/webob/cachecontrol.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class exists_property:
2323
def __get__(self, obj: None, type: _Type | None = None) -> Self: ...
2424
@overload
2525
def __get__(self, obj: Any, type: _Type | None = None) -> bool: ...
26-
def __set__(self, obj: Any, value: bool) -> None: ...
26+
def __set__(self, obj: Any, value: bool | None) -> None: ...
2727
def __delete__(self, obj: Any) -> None: ...
2828

2929
class value_property(Generic[_T, _NoneLiteral]):
@@ -39,11 +39,11 @@ class value_property(Generic[_T, _NoneLiteral]):
3939
def __get__(self, obj: None, type: _Type | None = None) -> Self: ...
4040
@overload
4141
def __get__(self, obj: Any, type: _Type | None = None) -> _T | _NoneLiteral | None: ...
42-
def __set__(self, obj: Any, value: _T | Literal[True]) -> None: ...
42+
def __set__(self, obj: Any, value: _T | Literal[True] | None) -> None: ...
4343
def __delete__(self, obj: Any) -> None: ...
4444

4545
class _IntValueProperty(value_property[int, _NoneLiteral]):
46-
def __set__(self, obj: Any, value: int) -> None: ...
46+
def __set__(self, obj: Any, value: int | None) -> None: ...
4747

4848
class _BaseCacheControl:
4949
update_dict = UpdateDict

0 commit comments

Comments
 (0)