Skip to content

Commit 2ae43d5

Browse files
committed
Added description in graphql package
1 parent b6db04c commit 2ae43d5

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

graphql/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'''
2+
GraphQL provides a Python implementation for the GraphQL specification
3+
but is also a useful utility for operating on GraphQL files and building
4+
sophisticated tools.
5+
6+
This primary module exports a general purpose function for fulfilling all
7+
steps of the GraphQL specification in a single operation, but also includes
8+
utilities for every part of the GraphQL specification:
9+
10+
- Parsing the GraphQL language.
11+
- Building a GraphQL type schema.
12+
- Validating a GraphQL request against a type schema.
13+
- Executing a GraphQL request against a type schema.
14+
15+
This also includes utility functions for operating on GraphQL types and
16+
GraphQL documents to facilitate building tools.
17+
'''

graphql/core/validation/rules/fields_on_correct_type.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def get_sibling_interfaces_including_field(type, field_name):
5151
implementing_objects = filter(lambda t: isinstance(t, GraphQLObjectType), type.get_possible_types())
5252
suggested_interfaces = Counter()
5353
for t in implementing_objects:
54-
print t.name
5554
for i in t.get_interfaces():
56-
print i.name
5755
if field_name not in i.get_fields():
5856
break
5957
suggested_interfaces[i.name] += 1

0 commit comments

Comments
 (0)