mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-21 11:21:20 +08:00
some strict optional fixes
This commit is contained in:
@@ -33,7 +33,7 @@ class HttpResponseBase(Iterable[AnyStr]):
|
||||
def has_header(self, header: str) -> bool: ...
|
||||
def items(self) -> Iterable[Tuple[str, str]]: ...
|
||||
@overload
|
||||
def get(self, header: Union[str, bytes], alternate: str) -> str: ...
|
||||
def get(self, header: Union[str, bytes], alternate: Optional[str]) -> str: ...
|
||||
@overload
|
||||
def get(self, header: Union[str, bytes]) -> Optional[str]: ...
|
||||
def set_cookie(
|
||||
|
||||
Reference in New Issue
Block a user