Skip to content

Commit a320f5d

Browse files
committed
Revert adding empty lines
1 parent bfdfa62 commit a320f5d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/fastapi_cli/discover.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,19 @@ class ModuleData:
4444
def get_module_data_from_path(path: Path) -> ModuleData:
4545
use_path = path.resolve()
4646
module_path = use_path
47-
4847
if use_path.is_file() and use_path.stem == "__init__":
4948
module_path = use_path.parent
50-
5149
module_paths = [module_path]
5250
extra_sys_path = module_path.parent
53-
5451
for parent in module_path.parents:
5552
init_path = parent / "__init__.py"
56-
5753
if init_path.is_file():
5854
module_paths.insert(0, parent)
5955
extra_sys_path = parent.parent
6056
else:
6157
break
6258

6359
module_str = ".".join(p.stem for p in module_paths)
64-
6560
return ModuleData(
6661
module_import_str=module_str,
6762
extra_sys_path=extra_sys_path.resolve(),

0 commit comments

Comments
 (0)