some strict optional fixes

This commit is contained in:
Maxim Kurnikov
2019-02-16 21:28:37 +03:00
parent 6da5ead6f0
commit 6763217a80
5 changed files with 12 additions and 11 deletions

View File

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