fix linting

features-42
deadc0de6 3 months ago
parent e63f5b8d79
commit 6b9e00f11b

2
.gitignore vendored

@ -11,3 +11,5 @@ build/
.mypy_cache
.pytest_cache
__pycache__
.pyre
.pytype

@ -1,4 +1,5 @@
[mypy]
strict = true
disable_error_code = import-untyped,import-not-found
ignore_missing_imports = True
ignore_missing_imports = True
warn_unused_ignores = False

@ -86,6 +86,7 @@ class Noder:
quiet: bool = False) -> Optional[NodeAny]:
"""get the node by internal tree path"""
resolv = anytree.resolver.Resolver('name')
bpath = ''
try:
bpath = os.path.basename(path)
the_node = resolv.get(top, bpath)

Loading…
Cancel
Save