Merge branch 'main' into fix-optional

This commit is contained in:
psychedelicious
2023-07-31 16:31:01 +10:00
committed by GitHub
15 changed files with 229 additions and 219 deletions

View File

@ -400,7 +400,7 @@ class ModelInstall(object):
attributes.update(dict(config=str(legacy_conf)))
return attributes
def relative_to_root(self, path: Path, root: None) -> Path:
def relative_to_root(self, path: Path, root: Optional[Path] = None) -> Path:
root = root or self.config.root_path
if path.is_relative_to(root):
return path.relative_to(root)