Skip to content

Commit

Permalink
Some type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas FitzRoy-Dale committed Jan 2, 2024
1 parent bef3c22 commit 80c5e1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rime/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
import pypika.utils
import pypika.queries
from pypika.terms import Term, Field, Star, Function, ArithmeticExpression
from pypika.queries import QueryException
import sqlite3

Table = pypika.Table
# Query is defined below (we use a custom one)
Column = pypika.Column
Parameter = pypika.Parameter
Connection = sqlite3.Connection


def _sqlite3_regexp_search(pattern, input):
Expand Down Expand Up @@ -111,7 +113,7 @@ def _validate_returning_term(self, term: Term) -> None:
raise QueryException("You can't return from other tables")

@pypika.utils.builder
def returning(self, *terms: Any) -> "SqliteQueryBuilder":
def returning(self, *terms: Any) -> "SqliteQueryBuilder": # type: ignore
for term in terms:
if isinstance(term, Field):
self._return_field(term)
Expand Down

0 comments on commit 80c5e1b

Please sign in to comment.