Skip to content

Commit

Permalink
Refactor to avoid mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Oct 16, 2024
1 parent 1076427 commit 9cfbe00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dicomweb_client/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def __init__(
# numpy 2 no longer has prod, but Python >= 3.8 does. We either have
# one or the other, so use the python math.prod method when available
# and fall abck to np if not.
self._prod = math.prod if hasattr(math, 'prod') else np.prod
self._prod = getattr(math, 'prod', np.prod)

self._attributes = {
_QueryResourceType.STUDIES: self._get_attributes(
Expand Down

0 comments on commit 9cfbe00

Please sign in to comment.