Skip to content

Commit

Permalink
Appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Jul 29, 2022
1 parent c56e009 commit 967c424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion it_depends/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def resolve_from_source(
package_name = body[0]
elif command == "set":
# detect project version...
value: Optional[str] = (body + [None,])[
# TODO: Revisit the following type error:
value: Optional[str] = (body + [None,])[ # type: ignore
1
] # type: ignore
if (
Expand Down
2 changes: 1 addition & 1 deletion it_depends/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def shortest_path_length(self, from_node: Union[T, R], to_node: T) -> int:
self._all_pairs_shortest_paths = dict(nx.all_pairs_shortest_path_length(self)) # type: ignore
if (
from_node not in self._all_pairs_shortest_paths
or to_node not in self._all_pairs_shortest_paths[from_node]
or to_node not in self._all_pairs_shortest_paths[from_node] # type: ignore
): # type: ignore
return -1
return self._all_pairs_shortest_paths[from_node][to_node] # type: ignore
Expand Down

0 comments on commit 967c424

Please sign in to comment.