diff --git a/.gitignore b/.gitignore index 99e2cbc..ce60cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ build/ .mypy_cache .pytest_cache __pycache__ +.pyre +.pytype diff --git a/.mypy.ini b/.mypy.ini index 1e6851f..7d2c387 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -1,4 +1,5 @@ [mypy] strict = true disable_error_code = import-untyped,import-not-found -ignore_missing_imports = True \ No newline at end of file +ignore_missing_imports = True +warn_unused_ignores = False diff --git a/catcli/noder.py b/catcli/noder.py index 6009262..57ef430 100644 --- a/catcli/noder.py +++ b/catcli/noder.py @@ -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)