We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mypy raised an error on this code:
DDL(stmt).execute_if(dialect='postgresql')
error: Argument "dialect" to "execute_if" of "DDLElement" has incompatible type "str"; expected "Optional[Dialect]"
However, the documentation for this method and source code suggest that the expected type is:
Optional[Union[str, Tuple[str, ...], List[str], Set[str]]].
Optional[Union[str, Tuple[str, ...], List[str], Set[str]]]
Location of problem:
sqlalchemy-stubs/sqlalchemy-stubs/sql/ddl.pyi
Line 36 in 55470ce
The text was updated successfully, but these errors were encountered:
Fix sqlalchemy.ddl.DDL.execute_if dialect type (dropbox#181)
578a48a
dialect should be a string a list/tuple/set of strings. Not a Dialect object. https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4_18/lib/sqlalchemy/sql/ddl.py#L158 Closes dropbox#181
Successfully merging a pull request may close this issue.
mypy raised an error on this code:
error: Argument "dialect" to "execute_if" of "DDLElement" has incompatible type "str"; expected "Optional[Dialect]"
However, the documentation for this method and source code suggest that the expected type is:
Optional[Union[str, Tuple[str, ...], List[str], Set[str]]]
.Location of problem:
sqlalchemy-stubs/sqlalchemy-stubs/sql/ddl.pyi
Line 36 in 55470ce
The text was updated successfully, but these errors were encountered: