diff --git a/slpkg/utilities.py b/slpkg/utilities.py index 4f0a49b4..4abafb42 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -184,7 +184,7 @@ class Utilities: raise SystemExit(f"\n{self.configs.prog_name}: {self.bred}Error{self.endc}: {message}.\n") @staticmethod - def get_file_size(file): + def get_file_size(file: Path) -> str: """ Get the file size and converted to units. """ unit: str = 'KB' file_size = Path(file).stat().st_size