3.8 compat

This commit is contained in:
Phil Schaf 2024-02-05 16:28:27 +01:00
parent be27caa26c
commit e0402fa0d9
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ def module_name_from_path(path: Path, root: Path) -> str:
return ".".join(min(candidates, key=len)) # type: ignore[arg-type] return ".".join(min(candidates, key=len)) # type: ignore[arg-type]
def _module_name_from_path(path: Path, root: Path) -> tuple[str, ...]: def _module_name_from_path(path: Path, root: Path) -> "tuple[str, ...]":
path = path.with_suffix("") path = path.with_suffix("")
try: try:
relative_path = path.relative_to(root) relative_path = path.relative_to(root)