Skip to content

Commit 35c10f8

Browse files
committed
Python: Compatibility with Python 3.8
1 parent 5f58c3b commit 35c10f8

File tree

1 file changed

+3
-1
lines changed
  • cratedb_sqlparse_py/cratedb_sqlparse

1 file changed

+3
-1
lines changed

cratedb_sqlparse_py/cratedb_sqlparse/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import List
2+
13
from antlr4 import InputStream, CommonTokenStream, Token
24
from antlr4.error.ErrorListener import ErrorListener
35

@@ -90,7 +92,7 @@ def __repr__(self):
9092
return f'{self.__class__.__qualname__}<{self.query if len(self.query) < 15 else self.query[:15] + "..."}>'
9193

9294

93-
def sqlparse(query: str) -> list[Statement]:
95+
def sqlparse(query: str) -> List[Statement]:
9496
"""
9597
Parses a string into SQL `Statement`.
9698
"""

0 commit comments

Comments
 (0)