You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When autogenerating a migration for a table with a UniqueConstraint that specifies deferrable=True, the resulting UniqueConstraint in the migration script specifies deferrable="True". Mypy complains: error: Argument "deferrable" to "UniqueConstraint" has incompatible type "str"; expected "bool | None" [arg-type]
Expected behavior
The generated UniqueConstraint should specify deferrable=True.
Describe the bug
When autogenerating a migration for a table with a
UniqueConstraint
that specifiesdeferrable=True
, the resultingUniqueConstraint
in the migration script specifiesdeferrable="True"
. Mypy complains:error: Argument "deferrable" to "UniqueConstraint" has incompatible type "str"; expected "bool | None" [arg-type]
Expected behavior
The generated
UniqueConstraint
should specifydeferrable=True
.To Reproduce
Error
Versions.
Additional context
From a basic search in the source code, I believe the error may be here
Have a nice day!
The text was updated successfully, but these errors were encountered: