Skip to content

Commit

Permalink
chore: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 17, 2023
1 parent 8971fd4 commit c783641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mknodes/templatenodes/mkpipdeptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_mermaid(
# thus ensuring, that the filter will be applied on ReverseTree
if reverse:
tree = tree.reverse()
show_only = package.split(",") if package and isinstance(package, str) else package
show_only = package.split(",") if isinstance(package, str) else package
exclude_list = set(exclude.split(",")) if exclude else None
if show_only is not None or exclude_list is not None:
tree = tree.filter_nodes(show_only, exclude_list)
Expand Down

0 comments on commit c783641

Please sign in to comment.