Skip to content

Commit 203c58e

Browse files
committed
fix linting
1 parent 92675bc commit 203c58e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

eventsourcingdb/container.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ def start(self) -> 'Container':
139139
def _pull_or_get_image(self) -> None:
140140
try:
141141
self._docker_client.images.pull(self._image_name, self._image_tag)
142-
except errors.APIError as e:
143-
self._handle_image_pull_error(e)
142+
except errors.APIError:
143+
self._handle_image_pull_error()
144144

145-
def _handle_image_pull_error(self, error) -> None:
145+
def _handle_image_pull_error(self) -> None:
146146
image_name = f"{self._image_name}:{self._image_tag}"
147147

148148
# First check if the image is already available locally

eventsourcingdb/http_client/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(
1919
self.__session: ClientSession | None = None
2020

2121
async def __aenter__(self) -> 'HttpClient':
22-
await self.initialize()
22+
await self.__initialize()
2323
return self
2424

2525
async def __aexit__(
@@ -37,7 +37,7 @@ async def __initialize(self) -> None:
3737

3838
self.__session = aiohttp.ClientSession(connector_owner=True)
3939

40-
async def close(self) -> None:
40+
async def __close(self) -> None:
4141
if self.__session is not None:
4242
await self.__session.close()
4343
self.__session = None

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import logging
2-
import pytest
31
import pytest_asyncio
42
from eventsourcingdb import EventCandidate
53
from .shared.database import Database

0 commit comments

Comments
 (0)