-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Missing type stubs #1378
Comments
Hi, Alembic has no |
Sorry about that, it seems that it originates from alembic-postgresql-enum. Still, it's somehow injected to |
I don't think it's something that's supported by python, but I may be mistaken here. maybe that plugin could export a module that copies over what it adds to from alembic_postgresql_enum import ape_op
...
ape_op.sync_enum_values(...) |
the dynamic nature of the "op" module precedes Python pep-484 typing. given today's reality, we probably would not have used this model. I would suggest that third party libraries that have their own Alembic symbols provide a direct module-access space of their own from which to call upon these functions. |
It seems that the plugin uses |
Describe the bug
Function
sync_enum_values
is missing fromalembic/op.pyi
type stubs file. It's possible that there are some other function annotations missing as well. It's hard to check sincealembic/op.py
is dynamic.Expected behavior
Function
sync_enum_values
should be annotated.To Reproduce
Call
mypy alembic_example.py
.Error
Versions.
The text was updated successfully, but these errors were encountered: