refactor: Make types.py strictly typechecked. (#336)

This commit is contained in:
David Soria Parra 2025-03-26 14:21:35 +00:00 • committed by GitHub
commit 9a2bb6a7e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 66 additions and 34 deletions

View file

@ -138,9 +138,7 @@ def server(server_port: int) -> Generator[None, None, None]:
time.sleep(0.1)
attempt += 1
else:
raise RuntimeError(
f"Server failed to start after {max_attempts} attempts"
)
raise RuntimeError(f"Server failed to start after {max_attempts} attempts")
yield

View file

@ -134,9 +134,7 @@ def server(server_port: int) -> Generator[None, None, None]:
time.sleep(0.1)
attempt += 1
else:
raise RuntimeError(
f"Server failed to start after {max_attempts} attempts"
)
raise RuntimeError(f"Server failed to start after {max_attempts} attempts")
yield