dropbox / sqlalchemy-stubs

Mypy plugin and stubs for SQLAlchemy
Apache License 2.0
570 stars 101 forks source link

error: Unexpected keyword argument "astext_type" for "JSONB" #207

Open triptec opened 3 years ago

triptec commented 3 years ago

I'm getting error: Unexpected keyword argument "astext_type" for "JSONB" in my alembic migrations on lines like: sa.Column("data", postgresql.JSONB(astext_type=sa.Text()), nullable=True),

Looking at the init function of the JSON class that JSONB inherits it has a keyword argument astext_type.

Can't find the init function for JSON/JSONB in this repo.

So, am I doing something wrong or is there something not implemented or whatnot?

Thanks!

miketheman commented 1 year ago

Recommend closing, as should have been solved via #211