We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0fa058 commit 27f8152Copy full SHA for 27f8152
graphql/language/ast.py
@@ -83,7 +83,7 @@ def __str__(self):
83
84
def __repr__(self):
85
"""Print a simplified form when appearing in repr() or inspect()."""
86
- return "<Location {}:{}>".format(self.start, self.end)
+ return f"<Location {self.start}:{self.end}>"
87
88
def __inspect__(self):
89
return repr(self)
graphql/language/lexer.py
@@ -61,7 +61,7 @@ def __str__(self):
61
62
63
64
- return "<Token {} {}/{}>".format(self.desc, self.line, self.column)
+ return f"<Token {self.desc} {self.line}/{self.column}>"
65
66
67
0 commit comments