Skip to content

Commit 5cfa895

Browse files
authored
Merge pull request #370 from sangheestyle/patch-1
fixed: wrong example for interface
2 parents 67c0872 + 11996e9 commit 5cfa895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/interfaces.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ This example model defines a Character, which has a name. ``Human`` and
2323
name = graphene.String()
2424
2525
# Human is a Character implementation
26-
class Human(ObjectType):
26+
class Human(graphene.ObjectType):
2727
class Meta:
2828
interfaces = (Character, )
2929
3030
born_in = graphene.String()
3131
3232
# Droid is a Character implementation
33-
class Droid(Character):
33+
class Droid(graphene.ObjectType):
3434
class Meta:
3535
interfaces = (Character, )
3636

0 commit comments

Comments
 (0)