Skip to content

Commit

Permalink
lint: Upgrade to new version of black
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Nov 23, 2019
1 parent 29b1999 commit 8837c30
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tornado/httputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ class HTTPFile(ObjectDict):


def _parse_request_range(
range_header: str
range_header: str,
) -> Optional[Tuple[Optional[int], Optional[int]]]:
"""Parses a Range header.
Expand Down
2 changes: 1 addition & 1 deletion tornado/tcpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(

@staticmethod
def split(
addrinfo: List[Tuple]
addrinfo: List[Tuple],
) -> Tuple[
List[Tuple[socket.AddressFamily, Tuple]],
List[Tuple[socket.AddressFamily, Tuple]],
Expand Down
16 changes: 12 additions & 4 deletions tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,11 @@ def flush(self, include_footers: bool = False) -> "Future[None]":
self._headers_written = True
for transform in self._transforms:
assert chunk is not None
self._status_code, self._headers, chunk = transform.transform_first_chunk(
(
self._status_code,
self._headers,
chunk,
) = transform.transform_first_chunk(
self._status_code, self._headers, chunk, include_footers
)
# Ignore the chunk and only write the headers for HEAD requests
Expand Down Expand Up @@ -3524,9 +3528,13 @@ def _decode_signed_value_v2(
clock: Callable[[], float],
) -> Optional[bytes]:
try:
key_version, timestamp_bytes, name_field, value_field, passed_sig = _decode_fields_v2(
value
)
(
key_version,
timestamp_bytes,
name_field,
value_field,
passed_sig,
) = _decode_fields_v2(value)
except ValueError:
return None
signed_string = value[: -len(passed_sig)]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ deps =
full: pycares
docs: -r{toxinidir}/docs/requirements.txt
lint: flake8
lint: black==19.3b0
lint: black==19.10b0
lint: mypy==0.701

setenv =
Expand Down

0 comments on commit 8837c30

Please sign in to comment.