Skip to content

Commit

Permalink
Work around pycodestyle bug on Python 3.12
Browse files Browse the repository at this point in the history
It has been fixed upstream, but we're using an old version of flake8 (to
support Python 3.7) which is presumably using an older pycodestyle.
  • Loading branch information
bmerry committed Sep 19, 2023
1 parent 2cb0012 commit 455b6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiokatcp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __str__(self) -> str:
else:
prefix = "[" + str(self._host) + "]"
if self._port is not None:
return f"{prefix}:{self._port}"
# noqa is to work around https://github.com/PyCQA/pycodestyle/issues/1178
return f"{prefix}:{self._port}" # noqa: E231
else:
return prefix

Expand Down

0 comments on commit 455b6f1

Please sign in to comment.