Skip to content

Commit 265e11b

Browse files
authored
fix: explicit specification of arguments in FileSystemAdapter open func. (#4049)
1 parent 28daa52 commit 265e11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litestar/file_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def open(
113113
buffering=buffering,
114114
),
115115
)
116-
return AsyncFile(await sync_to_thread(self.file_system.open, file, mode, buffering)) # type: ignore[arg-type]
116+
return AsyncFile(await sync_to_thread(self.file_system.open, file, mode=mode, buffering=buffering)) # type: ignore[arg-type]
117117
except PermissionError as e:
118118
raise NotAuthorizedException(f"failed to open {file} due to missing permissions") from e
119119
except OSError as e:

0 commit comments

Comments
 (0)