From c14705b6cc3d28072e97de4c362fe71586d6d06c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 21 Feb 2023 09:44:44 +0200 Subject: [PATCH] aedi: fix error reported by mypy aedi/state.py:209: error: Incompatible return value type (got "Tuple[Optional[str], Any]", expected "Tuple[str, Path]") [return-value] --- aedi/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aedi/state.py b/aedi/state.py index d7da29dc..0c09ec50 100644 --- a/aedi/state.py +++ b/aedi/state.py @@ -171,7 +171,7 @@ class BuildState: # If all files and directories are stored in one top level directory, this directory is used as a root # If there is no single top level directory, new root directory will be created need_new_directory = False - first_path_component = None + first_path_component = '' for path in file_paths: if os.sep not in path: