Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Mar 11, 2024
1 parent 9982ef0 commit 5c1b665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions networkframe/groupby.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Union

class NodeGroupBy:
"""A class for grouping a `NetworkFrame` by a set of labels."""

Expand All @@ -20,6 +22,7 @@ def __init__(self, frame, source_groupby, target_groupby, induced: bool = False)
self._target_groupby = target_groupby
self.induced = induced

self._axis: Union[str, int]
if source_groupby is None:
self._axis = 1
elif target_groupby is None:
Expand Down

0 comments on commit 5c1b665

Please sign in to comment.