Skip to content

Commit

Permalink
Types: Add method ObjectArray.as_generic
Browse files Browse the repository at this point in the history
AFAIK, it is needed for reverse type lookups.
  • Loading branch information
amotl committed Jan 15, 2024
1 parent 07bba7b commit f24a693
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sqlalchemy_cratedb/type/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,8 @@ def any(self, other, operator=operators.eq):
def get_col_spec(self, **kws):
return "ARRAY(OBJECT)"

def as_generic(self, **kwargs):
return sqltypes.ARRAY


ObjectArray = MutableList.as_mutable(_ObjectArray)

0 comments on commit f24a693

Please sign in to comment.