After attempting to cast a literal arrays type via cast, type_coerce, and type_ and not having any success thought I would ask.
from pprint import pprint fr
Casting is very straightforward:
from sqlalchemy.dialects.postgresql import array, ARRAY cast(array([]), ARRAY(Integer))
Without seeing what you've tried, I can only speculate that you tried to cast to array(Integer) instead of ARRAY(Integer).
array(Integer)
ARRAY(Integer)