We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 027ebee commit 47e215fCopy full SHA for 47e215f
tests/pyutils/test_is_nullish.py
@@ -4,22 +4,6 @@
4
from graphql.pyutils import is_nullish
5
6
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
23
def describe_is_nullish():
24
def null_is_nullish():
25
assert is_nullish(None) is True
0 commit comments