dropbox / dropbox/sqlalchemy-stubs

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

Open
#207 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
583
Forks
96
PR merge metrics
No merged PRs in 30d

Description

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__](https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4_0b1/lib/sqlalchemy/dialects/postgresql/json.py#L183) 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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.