Skip to content

Commit 7a1e9d7

Browse files
authored
added graphene import to READMEs (#1183)
it's nice to just be able to copy/paste the entire example without having to remember the import
1 parent 49fcf9f commit 7a1e9d7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ pip install "graphene>=2.0"
4545
Here is one example for you to get started:
4646

4747
```python
48+
import graphene
49+
4850
class Query(graphene.ObjectType):
4951
hello = graphene.String(description='A typical hello world')
5052

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Here is one example for you to get started:
6767

6868
.. code:: python
6969
70+
import graphene
71+
7072
class Query(graphene.ObjectType):
7173
hello = graphene.String(description='A typical hello world')
7274

0 commit comments

Comments
 (0)