refactor: Make types.py strictly typechecked. (#336)
This commit is contained in:
parent
df2d3a57c2
commit
9a2bb6a7e7
2 changed files with 66 additions and 34 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue