Skip to content

Commit

Permalink
fix: ignore os.setxattr lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Dec 11, 2023
1 parent b94ef00 commit 88e1186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai/backend/storage/cephfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ async def update_quota_scope(
None,
# without type: ignore mypy will raise error when trying to run on macOS
# because os.setxattr() exists only for linux
lambda: os.setxattr(
lambda: os.setxattr( # type: ignore[attr-defined]
qspath, "ceph.quota.max_bytes", str(int(config.limit_bytes)).encode()
), # type: ignore[attr-defined]
),
)

async def unset_quota(self, quota_scope_id: QuotaScopeID) -> None:
Expand Down

0 comments on commit 88e1186

Please sign in to comment.