Skip to content

Commit 96996c4

Browse files
Apply ruff rule RUF100
RUF100 Unused `noqa` directive
1 parent 38becf3 commit 96996c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fsspec/implementations/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def _get_file(
254254
if isfilelike(lpath):
255255
outfile = lpath
256256
else:
257-
outfile = open(lpath, "wb") # noqa: ASYNC101, ASYNC230
257+
outfile = open(lpath, "wb") # noqa: ASYNC230
258258

259259
try:
260260
chunk = True
@@ -286,7 +286,7 @@ async def gen_chunks():
286286
context = nullcontext(lpath)
287287
use_seek = False # might not support seeking
288288
else:
289-
context = open(lpath, "rb") # noqa: ASYNC101, ASYNC230
289+
context = open(lpath, "rb") # noqa: ASYNC230
290290
use_seek = True
291291

292292
with context as f:
@@ -812,7 +812,7 @@ async def get_range(session, url, start, end, file=None, **kwargs):
812812
async with r:
813813
out = await r.read()
814814
if file:
815-
with open(file, "r+b") as f: # noqa: ASYNC101, ASYNC230
815+
with open(file, "r+b") as f: # noqa: ASYNC230
816816
f.seek(start)
817817
f.write(out)
818818
else:

0 commit comments

Comments
 (0)