diff options
author | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
commit | ee3e224e396494cd0d69bb6167087a071a20349c (patch) | |
tree | 5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/plugins/msd/otg/fs.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
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: |