According to the documentation, we should be able to use `Callable[Constraint, Table]]` as the value type for MetaData.naming_convention.
https://docs.sqlalchemy.org/en/20/core/metadata.html#sqlalchemy.schema.MetaData.params.naming_convention
self,
schema: Optional[str] = None,
quote_schema: Optional[bool] = None,
- naming_convention: Optional[Dict[str, str]] = None,
+ naming_convention: Optional[Dict[str, str | Callable[Constraint, Table]]] = None,
info: Optional[_InfoType] = None,
) -> None:
"""Create a new MetaData object.