File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ class JSONSchemaLexer(JsonLexer):
36
36
37
37
default_dialect = None
38
38
39
- def __init__ (self , default_dialect : str | None = None ):
40
- super ().__init__ () # type: ignore[reportUnknownMemberType]
41
- if default_dialect and default_dialect [0 ]!= '"' :
39
+ def __init__ (self , default_dialect : str | None = None ):
40
+ super ().__init__ () # type: ignore[reportUnknownMemberType]
41
+ if default_dialect and default_dialect [0 ] != '"' :
42
42
default_dialect = '"' + default_dialect
43
-
44
- if default_dialect and default_dialect [- 1 ]!= '"' :
43
+
44
+ if default_dialect and default_dialect [- 1 ] != '"' :
45
45
default_dialect = default_dialect + '"'
46
-
46
+
47
47
self .default_dialect = default_dialect
48
48
49
49
def get_dialect_keywords (self , dialect_url : str | None ) -> list [str ]:
@@ -172,7 +172,7 @@ def _get_nearest_valid_dialect(
172
172
syntax_stack ,
173
173
nearest_schema_index - 1 ,
174
174
)
175
-
175
+
176
176
if self .default_dialect :
177
177
return self .default_dialect
178
178
You can’t perform that action at this time.
0 commit comments