sqlalchemy / alembic

A database migrations tool for SQLAlchemy.
MIT License
2.61k stars 234 forks source link

Fix type annotations in create_foreign_key #1430

Closed kasium closed 4 months ago

kasium commented 4 months ago

Description

The constraint name parameter of create_foreign_key should be optional, but the batch function defined it as str instead of Optional[str].

Closes #1429

Checklist

This pull request is:

Have a nice day!

CaselIT commented 4 months ago

thanks!