Skip to content

Commit 34ec5a0

Browse files
authored
chore: Remove unused ignoring typing comments (#737)
Remove unused ignoring typing comments
1 parent a3f2e60 commit 34ec5a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/apify/storage_clients/_file_system/_key_value_store_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def open(
6161
key=configuration.input_key, record_path=input_file_path
6262
)
6363

64-
return client # ty: ignore[invalid-return-type]
64+
return client
6565

6666
@override
6767
async def purge(self) -> None:

tests/unit/actor/test_actor_lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
233233
await websocket.wait_closed()
234234

235235
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
236-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
236+
port: int = ws_server.sockets[0].getsockname()[1]
237237
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
238238

239239
mock_run_client = Mock()

tests/unit/events/test_apify_event_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
148148
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
149149
# When you don't specify a port explicitly, the websocket connection is opened on a random free port.
150150
# We need to find out which port is that.
151-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
151+
port: int = ws_server.sockets[0].getsockname()[1]
152152
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
153153

154154
async with ApifyEventManager(Configuration.get_global_configuration()):
@@ -175,7 +175,7 @@ async def send_platform_event(event_name: Event, data: Any = None) -> None:
175175
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
176176
# When you don't specify a port explicitly, the websocket connection is opened on a random free port.
177177
# We need to find out which port is that.
178-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
178+
port: int = ws_server.sockets[0].getsockname()[1]
179179
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
180180

181181
dummy_system_info = {

0 commit comments

Comments
 (0)