Skip to content

Commit ab17b94

Browse files
committed
Fix typo and black formatting, remove unused import
1 parent 3a1f40e commit ab17b94

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

graphql/pyutils/contain_subset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def contain_subset(expected, actual):
2222
return False
2323
if isinstance(expected, list):
2424
aa = actual[:]
25-
return all(any(contain_subset(exp, act) for act in aa)
26-
for exp in expected)
25+
return all(any(contain_subset(exp, act) for act in aa) for exp in expected)
2726
for key in expected: # type: ignore
2827
eo = expected[key]
2928
ao = actual.get(key)

graphql/utils/tests/test_build_client_schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections import OrderedDict
2-
from pprint import pprint
32

43
from pytest import raises
54

@@ -714,7 +713,7 @@ def test_throws_when_missing_kind():
714713
)
715714

716715

717-
def test_succeds_on_smaller_equals_than_7_deep_lists():
716+
def test_succeeds_on_smaller_equals_than_7_deep_lists():
718717
schema = GraphQLSchema(
719718
query=GraphQLObjectType(
720719
name="Query",

0 commit comments

Comments
 (0)