diff options
Diffstat (limited to 'kvmd/plugins/msd/otg/fs.py')
-rw-r--r-- | kvmd/plugins/msd/otg/fs.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/plugins/msd/otg/fs.py b/kvmd/plugins/msd/otg/fs.py index 17306fe1..d5018190 100644 --- a/kvmd/plugins/msd/otg/fs.py +++ b/kvmd/plugins/msd/otg/fs.py @@ -23,8 +23,6 @@ import os import dataclasses -from typing import Optional - from ....logging import get_logger @@ -44,7 +42,7 @@ def get_file_size(path: str) -> int: return -1 -def get_fs_space(path: str, fatal: bool) -> Optional[FsSpace]: +def get_fs_space(path: str, fatal: bool) -> (FsSpace | None): try: st = os.statvfs(path) except Exception as err: |