Skip to content

Commit bbb91ef

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 80788b3 commit bbb91ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_aiohttp/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import asyncio
22
import warnings
3-
from typing import Any, Awaitable, Callable, Dict, Generator, Optional, Type, Union
3+
from collections.abc import Awaitable, Generator
4+
from typing import Any, Callable, Dict, Optional, Type, Union
45

56
import pytest
67
import pytest_asyncio
@@ -160,7 +161,7 @@ async def go(
160161
elif isinstance(__param, BaseTestServer):
161162
client = aiohttp_client_cls(__param, **kwargs)
162163
else:
163-
raise ValueError("Unknown argument type: %r" % type(__param))
164+
raise ValueError(f"Unknown argument type: {type(__param)!r}")
164165

165166
await client.start_server()
166167
clients.append(client)

0 commit comments

Comments
 (0)