Skip to content

Commit af20cae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 503a093 commit af20cae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jsonschema_lexer/lexer.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,15 @@ class JSONSchemaLexer(JsonLexer):
107107
]
108108

109109
parsed_data_types: ClassVar[list[str]] = [
110-
'"%s"' % data_type
111-
for data_type in data_types
110+
'"%s"' % data_type for data_type in data_types
112111
]
113112

114-
def get_tokens_unprocessed(self, text: str): # type: ignore[reportUnknownParameterType]
113+
def get_tokens_unprocessed(self, text: str): # type: ignore[reportUnknownParameterType]
115114
"""
116115
Get the unprocessed tokens and add
117116
custom token classes to it according to JSON Schema
118117
"""
119-
for start, token, value in super().get_tokens_unprocessed(text): # type: ignore[reportUnknownVariableType]
118+
for start, token, value in super().get_tokens_unprocessed(text): # type: ignore[reportUnknownVariableType]
120119
if token is Token.Name.Tag and value in self.parsed_keywords:
121120
yield start, Token.Keyword, value
122121
elif (

0 commit comments

Comments
 (0)