Skip to content

Commit 47e215f

Browse files
committed
Remove unused mock object
1 parent 027ebee commit 47e215f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/pyutils/test_is_nullish.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@
44
from graphql.pyutils import is_nullish
55

66

7-
class FakeNumpyArray:
8-
def __eq__(self, other):
9-
# Numpy arrays return an array when compared with another numpy array
10-
# containing the pointwise equality of the two
11-
if isinstance(other, FakeNumpyArray):
12-
return FakeNumpyArray()
13-
else:
14-
return False
15-
16-
def __bool__(self):
17-
raise TypeError(
18-
"The truth value of an array with more than one element is "
19-
"ambiguous. Use a.any() or a.all()"
20-
)
21-
22-
237
def describe_is_nullish():
248
def null_is_nullish():
259
assert is_nullish(None) is True

0 commit comments

Comments
 (0)