Skip to content

Conversation

@ftsartek
Copy link
Contributor

@ftsartek ftsartek commented Feb 2, 2026

Description

The Python default migration template uses double quotes for the upgrade statement, which is multiline and therefore invalid syntax. This replaces the start and end quotes with triple quotes instead. This fixes a syntactical error which would block auto-formatting the migration on creation.

multiline statement

The Python default migration template uses double quotes for the upgrade
statement, which is multiline and therefore invalid syntax.
This replaces the start and end quotes with triple quotes instead.
@ftsartek
Copy link
Contributor Author

ftsartek commented Feb 2, 2026

The smallest PR I think I could have created.

@cofin cofin changed the title chore: update python migration template format to use triple quotes for multiline statement fix: python template triple quote formatting Feb 3, 2026
@cofin cofin merged commit c72f086 into litestar-org:main Feb 3, 2026
11 of 12 checks passed
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.

2 participants