Skip to content

Commit

Permalink
Remove more unused ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
henadzit committed Dec 4, 2024
1 parent 7c28dd8 commit a3cc1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions pypika/dialects/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ def returning(self, *terms: Any) -> "PostgreSQLQueryBuilder": # type:ignore[ret
elif isinstance(term, Function):
raise QueryException("Aggregate functions are not allowed in returning")
else:
self._return_other(
self.wrap_constant(term, self._wrapper_cls) # type:ignore[arg-type]
)
self._return_other(self.wrap_constant(term, self._wrapper_cls))

def _validate_returning_term(self, term: Term) -> None:
for field in term.fields_():
Expand Down
4 changes: 2 additions & 2 deletions pypika/terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,14 @@ def get_json_value(self, key_or_index: str | int) -> "BasicCriterion":
return BasicCriterion(
JSONOperators.GET_JSON_VALUE,
self,
self.wrap_constant(key_or_index), # type:ignore[arg-type]
self.wrap_constant(key_or_index),
)

def get_text_value(self, key_or_index: str | int) -> "BasicCriterion":
return BasicCriterion(
JSONOperators.GET_TEXT_VALUE,
self,
self.wrap_constant(key_or_index), # type:ignore[arg-type]
self.wrap_constant(key_or_index),
)

def get_path_json_value(self, path_json: str) -> "BasicCriterion":
Expand Down

0 comments on commit a3cc1e2

Please sign in to comment.