Skip to content

Commit 9cfbe00

Browse files
committed
Refactor to avoid mypy issues
1 parent 1076427 commit 9cfbe00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dicomweb_client/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def __init__(
568568
# numpy 2 no longer has prod, but Python >= 3.8 does. We either have
569569
# one or the other, so use the python math.prod method when available
570570
# and fall abck to np if not.
571-
self._prod = math.prod if hasattr(math, 'prod') else np.prod
571+
self._prod = getattr(math, 'prod', np.prod)
572572

573573
self._attributes = {
574574
_QueryResourceType.STUDIES: self._get_attributes(

0 commit comments

Comments
 (0)