8000 Merge pull request #9168 from k-kapp/simplify-if-statement/master · numpy/numpy@c556b42 · GitHub
[go: up one dir, main page]

Skip to content

Commit c556b42

Browse files
authored
Merge pull request #9168 from k-kapp/simplify-if-statement/master
MAINT: Simplify if statement
2 parents 8471193 + af07eae commit c556b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/ma/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2935,7 +2935,7 @@ def _update_from(self, obj):
29352935
Copies some attributes of obj to self.
29362936
29372937
"""
2938-
if obj is not None and isinstance(obj, ndarray):
2938+
if isinstance(obj, ndarray):
29392939
_baseclass = type(obj)
29402940
else:
29412941
_baseclass = ndarray

0 commit comments

Comments
 (0)
0