Skip to content

Commit

Permalink
Mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 6, 2024
1 parent 0884d51 commit 5e6e3b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_ert/forward_model_runner/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def __aexit__(
await self._term_receiver_task()
self.term()

async def _term_receiver_task(self):
async def _term_receiver_task(self) -> None:
if self._receiver_task and not self._receiver_task.done():
self._receiver_task.cancel()
await asyncio.gather(self._receiver_task, return_exceptions=True)
Expand Down
4 changes: 2 additions & 2 deletions src/ert/ensemble_evaluator/_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ async def send_event(
cert: Optional[Union[str, bytes]] = None,
retries: int = 10,
) -> None:
async with Client(url, token, cert, max_retries=retries) as client:
await client._send(event_to_json(event))
async with Client(url, token, cert) as client:
await client._send(event_to_json(event), max_retries=retries)

def generate_event_creator(self) -> Callable[[Id.ENSEMBLE_TYPES], Event]:
def event_builder(status: str) -> Event:
Expand Down

0 comments on commit 5e6e3b9

Please sign in to comment.