Skip to content

Commit

Permalink
Change | to Union
Browse files Browse the repository at this point in the history
  • Loading branch information
chongshenng committed Jul 15, 2024
1 parent 0618de9 commit b7a8c12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


from collections import Counter
from typing import Dict, List, Optional
from typing import Dict, List, Optional, Union

import numpy as np

Expand Down Expand Up @@ -120,7 +120,7 @@ class label distribution. `float` values are rounded to the nearest `int`.

def __init__( # pylint: disable=R0913
self,
distribution_array: NDArrayInt | NDArrayFloat,
distribution_array: Union[NDArrayInt, NDArrayFloat],
num_partitions: int,
num_unique_labels_per_partition: int,
partition_by: str,
Expand Down

0 comments on commit b7a8c12

Please sign in to comment.