Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table() schema argument not supported #226

Open
rectalogic opened this issue Oct 25, 2021 · 0 comments
Open

table() schema argument not supported #226

rectalogic opened this issue Oct 25, 2021 · 0 comments

Comments

@rectalogic
Copy link

Given this file:

import sqlalchemy as sa

sa.table("foo", schema="bar")

mypy with sqlalchemy-stubs plugin fails with:

$ mypy s.py
s.py:3: error: Unexpected keyword argument "schema" for "TableClause"
/site/venv/lib/python3.8/site-packages/sqlalchemy-stubs/sql/selectable.pyi:161: note: "TableClause" defined here
Found 1 error in 1 file (checked 1 source file)

https://docs.sqlalchemy.org/en/14/core/selectable.html#sqlalchemy.sql.expression.table

$ mypy --version
mypy 0.910
$ pip show sqlalchemy-stubs
Name: sqlalchemy-stubs
Version: 0.4
Summary: SQLAlchemy stubs and mypy plugin
Home-page: https://github.com/dropbox/sqlalchemy-stubs
Author: Ivan Levkivskyi
Author-email: levkivskyi@gmail.com
License: MIT License
Location: /site/venv/lib/python3.8/site-packages
Requires: typing-extensions, mypy
Required-by:
$ pip show sqlalchemy
Name: SQLAlchemy
Version: 1.4.23
Summary: Database Abstraction Library
Home-page: https://www.sqlalchemy.org
Author: Mike Bayer
Author-email: mike_mp@zzzcomputing.com
License: MIT
Location: /site/venv/lib/python3.8/site-packages
Requires: greenlet
Required-by: sqlalchemy-views, sqlalchemy-redshift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant