Add-on: fix mypy error
This commit is contained in:
parent
11f45b8adf
commit
4744904502
@ -195,7 +195,7 @@ class JobTypePropertyGroup:
|
||||
dirpath = bpathlib.make_absolute(filepath).parent
|
||||
if n >= len(dirpath.parts):
|
||||
all_parts = dirpath.relative_to(dirpath.anchor)
|
||||
return all_parts
|
||||
return Path(all_parts)
|
||||
|
||||
subset = Path(*dirpath.parts[-n:])
|
||||
return subset
|
||||
|
Loading…
x
Reference in New Issue
Block a user