Open
Description
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]]]
.
Location of problem:
Metadata
Metadata
Assignees
Labels
No labels
Activity
Fix sqlalchemy.ddl.DDL.execute_if dialect type (dropbox#181)