]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix type annotation of schema.MetaData.naming_convention 9598/head
authorhanbin <58972963+hanbin8269@users.noreply.github.com>
Wed, 5 Apr 2023 01:46:45 +0000 (10:46 +0900)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 01:46:45 +0000 (10:46 +0900)
commitd458e36242c60f44b1140697ae04cc8ad8ac5b98
tree0d9abc1dc6946e2e4b9a436fd24c69bb23b44584
parente79ab08165e01dc7af50fcffadb31468ace51b6c
Fix type annotation of schema.MetaData.naming_convention

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
lib/sqlalchemy/sql/schema.py