Skip to content

Commit

Permalink
Add type signature in example
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Mar 23, 2024
1 parent 6386a70 commit 1454248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mygfa/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import mygfa


def print_depth(graph):
def print_depth(graph: mygfa.Graph) -> None:
# Count the number of times that any path passes through a segment.
seg_depths = {name: 0 for name in graph.segments}
for path in graph.paths.values():
Expand Down

0 comments on commit 1454248

Please sign in to comment.