Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuebin Su committed Sep 1, 2023
1 parent fbcdc44 commit c54b0b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion greenplumpython/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ def _serialize_to_expr(obj: Any, db: Optional[Database] = None) -> str:
if isinstance(obj, Expr):
return obj._serialize(db=db)
assert db is not None
return psycopg2.sql.Literal(obj).as_string(db._conn)
ret : str = psycopg2.sql.Literal(obj).as_string(db._conn)
return ret


class BinaryExpr(Expr):
Expand Down

0 comments on commit c54b0b1

Please sign in to comment.