Skip to content

Commit

Permalink
MAINT: Use equality instead of identity check with literal
Browse files Browse the repository at this point in the history
Resolves #14123
  • Loading branch information
Harmon758 authored and charris committed Jul 26, 2019
1 parent dd1ea67 commit da7b366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/ma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4450,7 +4450,7 @@ def count(self, axis=None, keepdims=np._NoValue):
if m is nomask:
# compare to _count_reduce_items in _methods.py

if self.shape is ():
if self.shape == ():
if axis not in (None, 0):
raise np.AxisError(axis=axis, ndim=self.ndim)
return 1
Expand Down

0 comments on commit da7b366

Please sign in to comment.