Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Jan 17, 2024
1 parent e63f5b8 commit 6b9e00f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ build/
.mypy_cache
.pytest_cache
__pycache__
.pyre
.pytype
3 changes: 2 additions & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions catcli/noder.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def get_node(top: NodeTop,
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)
Expand Down

0 comments on commit 6b9e00f

Please sign in to comment.