Skip to content

Commit b62798d

Browse files
committed
MAINT: replace __name__ of attributes
1 parent 2a34346 commit b62798d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

marray/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -539,4 +539,9 @@ def var(x, axis=None, correction=0, keepdims=False):
539539
except (ValueError, TypeError):
540540
pass
541541

542+
try:
543+
mod_attr.__name__ = xp_attr.__name__
544+
except (AttributeError, TypeError):
545+
pass
546+
542547
return mod

0 commit comments

Comments
 (0)