Skip to content

Commit 0680abd

Browse files
amotlsurister
authored andcommitted
Chore: Format code using Ruff 0.9
1 parent 007121e commit 0680abd

File tree

1 file changed

+2
-1
lines changed
  • cratedb_sqlparse_py/cratedb_sqlparse

1 file changed

+2
-1
lines changed

cratedb_sqlparse_py/cratedb_sqlparse/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ruff: noqa: A005 # Module `parser` shadows a Python standard-library module
12
from typing import List
23

34
from antlr4 import CommonTokenStream, InputStream, RecognitionException, Token
@@ -181,7 +182,7 @@ def type(self):
181182
return self.ctx.start.text
182183

183184
def __repr__(self):
184-
return f'{self.__class__.__qualname__}<{self.query if len(self.query) < 15 else self.query[:15] + "..."}>'
185+
return f"{self.__class__.__qualname__}<{self.query if len(self.query) < 15 else self.query[:15] + '...'}>"
185186

186187

187188
def find_suitable_error(statement, errors):

0 commit comments

Comments
 (0)