Skip to content

Commit 93963e6

Browse files
committed
(Make flake8 happy)
1 parent 1a820a4 commit 93963e6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/test_numpy_dtypes.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,14 @@ def test_numpy_bool():
356356
assert convert('foo') is True
357357

358358
class A(object):
359-
def __init__(self, x): self.x = x
360-
def __nonzero__(self): return self.x
361-
__bool__ = __nonzero__
359+
def __init__(self, x):
360+
self.x = x
361+
362+
def __nonzero__(self):
363+
return self.x
364+
365+
def __bool__(self):
366+
return self.x
362367

363368
class B(object):
364369
pass

0 commit comments

Comments
 (0)