Skip to content
New issue

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

Fix type annotations in create_foreign_key #1430

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

kasium
Copy link
Contributor

@kasium kasium commented Feb 22, 2024

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:

  • A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • A short code fix
    • please include the issue number, and create an issue if none exists, which
      must include a complete example of the issue. one line code fixes without an
      issue and demonstration will not be accepted.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests. one line code fixes without tests will not be accepted.
  • A new feature implementation
    • please include the issue number, and create an issue if none exists, which must
      include a complete example of how the feature would look.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests.

Have a nice day!

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

Closes sqlalchemy#1429
@CaselIT
Copy link
Member

CaselIT commented Feb 22, 2024

thanks!

@CaselIT CaselIT merged commit 88769c5 into sqlalchemy:main Feb 22, 2024
4 of 5 checks passed
@kasium kasium deleted the issue-1429 branch February 22, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_foreign_key has wrong type annotations
2 participants