Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions plugfs/azure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from typing import cast, final
from typing import final

from azure.core.exceptions import ResourceNotFoundError
from azure.storage.blob.aio import ContainerClient
Expand Down Expand Up @@ -92,9 +92,7 @@ async def get_size(self, path: str) -> int:
except ResourceNotFoundError as error:
raise NotFoundException(f"Failed to find file '{path}'!") from error

size = cast(int, stream.size)

return size
return stream.size

async def makedirs(self, path: str) -> None:
"""Azure storage does not really have directories, so we don't need to do anything here.
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
python = "^3.12"
aiofiles = "^24.1.0"
aiohttp = {extras = ["speedups"], version = "^3.10.3"}
azure-storage-blob = "^12.20.0"
azure-storage-blob = "^12.22.0"

[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
Expand Down