black reformat, some fixes

This commit is contained in:
Maxim Kurnikov
2018-12-06 19:13:06 +03:00
parent 25a71a7ef5
commit 5ec2830ba6
108 changed files with 673 additions and 187 deletions

View File

@@ -33,7 +33,9 @@ class HttpRequest:
def get_port(self) -> str: ...
def get_full_path(self, force_append_slash: bool = ...) -> str: ...
def get_full_path_info(self, force_append_slash: bool = ...) -> str: ...
def get_signed_cookie(self, key: str, default: Any = ..., salt: str = ..., max_age: Optional[int] = ...) -> Optional[str]: ...
def get_signed_cookie(
self, key: str, default: Any = ..., salt: str = ..., max_age: Optional[int] = ...
) -> Optional[str]: ...
def get_raw_uri(self) -> str: ...
def build_absolute_uri(self, location: Optional[str] = ...) -> str: ...
@property

View File

@@ -23,7 +23,11 @@ class HttpResponseBase:
cookies: cookies.SimpleCookie = ...
closed: bool = ...
def __init__(
self, content_type: Optional[str] = ..., status: Any = ..., reason: Optional[str] = ..., charset: Optional[str] = ...
self,
content_type: Optional[str] = ...,
status: Any = ...,
reason: Optional[str] = ...,
charset: Optional[str] = ...,
) -> None: ...
@property
def reason_phrase(self): ...