Skip to content

Commit f5615b2

Browse files
committed
parser: improve formatting of the comments
Replicates graphql/graphql-js@7afcaba
1 parent 5348629 commit f5615b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/graphql/language/parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,8 @@ def peek(self, kind: TokenKind) -> bool:
994994
def expect_token(self, kind: TokenKind) -> Token:
995995
"""Expect the next token to be of the given kind.
996996
997-
If the next token is of the given kind, return that token after advancing
998-
the lexer. Otherwise, do not change the parser state and throw an error.
997+
If the next token is of the given kind, return that token after advancing the
998+
lexer. Otherwise, do not change the parser state and throw an error.
999999
"""
10001000
token = self._lexer.token
10011001
if token.kind == kind:
@@ -1011,8 +1011,8 @@ def expect_token(self, kind: TokenKind) -> Token:
10111011
def expect_optional_token(self, kind: TokenKind) -> Optional[Token]:
10121012
"""Expect the next token optionally to be of the given kind.
10131013
1014-
If the next token is of the given kind, return that token after advancing
1015-
the lexer. Otherwise, do not change the parser state and return None.
1014+
If the next token is of the given kind, return that token after advancing the
1015+
lexer. Otherwise, do not change the parser state and return None.
10161016
"""
10171017
token = self._lexer.token
10181018
if token.kind == kind:

0 commit comments

Comments
 (0)