We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Tracking page for documentation and example code Style Guide discussion.
Use class arguments instead of class Meta.
class Meta
Example: Instead of:
class Human(graphene.ObjectType): class Meta: interfaces = (Character, ) starships = graphene.List(Starship) home_planet = graphene.String()
Use:
class Human(graphene.ObjectType, interfaces = (Character, )): starships = graphene.List(Starship) home_planet = graphene.String()
Use f-strings in place of .format(...).
.format(...)
Using root instead of self or _ in resolver definitions.
root
self
_
@staticmethod?
@staticmethod
There was an error while loading. Please reload this page.