Skip to content

Commit 72e453c

Browse files
committed
lints
1 parent d737a9f commit 72e453c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fsspec/implementations/tests/test_asyn_wrapper.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LockedFileSystem(AsyncFileSystem):
2020
def __init__(
2121
self,
2222
asynchronous: bool = False,
23-
delays: tuple[float, ...] | None = None,
23+
delays=None,
2424
) -> None:
2525
self.lock = asyncio.Lock()
2626
self.delays = cycle((0.03, 0.01) if delays is None else delays)
@@ -200,7 +200,7 @@ def test_open(tmpdir):
200200
@pytest.mark.asyncio
201201
async def test_semaphore_synchronous():
202202
fs = AsyncFileSystemWrapper(
203-
LockedFileSystem(), asynchronous=False, semaphore=asyncio.Semaphore(1)
203+
LockedFileSystem(), asynchronous=False, semaphore=asyncio.Semaphore(1)
204204
)
205205

206206
paths = [f"path_{i}" for i in range(1, 3)]
@@ -211,7 +211,9 @@ async def test_semaphore_synchronous():
211211

212212
@pytest.mark.asyncio
213213
async def test_deadlock_when_asynchronous():
214-
fs = AsyncFileSystemWrapper(LockedFileSystem(), asynchronous=False, semaphore=asyncio.Semaphore(3))
214+
fs = AsyncFileSystemWrapper(
215+
LockedFileSystem(), asynchronous=False, semaphore=asyncio.Semaphore(3)
216+
)
215217
paths = [f"path_{i}" for i in range(1, 3)]
216218

217219
with pytest.raises(RuntimeError, match="Concurrent requests!"):

0 commit comments

Comments
 (0)