Skip to content

Commit 5c5ace4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03875e8 commit 5c5ace4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devpi_process/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _keep_draining() -> None:
149149

150150
def _drain_stdout(self) -> Iterator[str]:
151151
process = cast("Popen[str]", self._process)
152-
stdout = cast(IO[str], process.stdout)
152+
stdout = cast("IO[str]", process.stdout)
153153
while True:
154154
if process.poll() is not None: # pragma: no cover
155155
print(f"devpi server with pid {process.pid} at {self._server_dir} died") # noqa: T201
@@ -211,7 +211,7 @@ def __repr__(self) -> str:
211211
def _find_free_port() -> int:
212212
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as socket_handler:
213213
socket_handler.bind(("", 0))
214-
return cast(int, socket_handler.getsockname()[1])
214+
return cast("int", socket_handler.getsockname()[1])
215215

216216

217217
__all__ = [

0 commit comments

Comments
 (0)