Skip to content

Commit

Permalink
Use union type instead of union operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jul 6, 2024
1 parent 2d372df commit d79f48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/sample.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import logging
import random
from typing import Union

logger = logging.getLogger(__name__)


def get_sample_granules(
granules: list,
sample_size: int,
max_granule_size: int | float,
max_granule_size: Union[int, float],
round_ndigits: int = None,
):
"""Return a list of randomly-sampled granules and their size in MB.
Expand Down

0 comments on commit d79f48f

Please sign in to comment.