Код: Выделить всё
duplicate_integration = select(Integration).where(
integration_create.provider_accounting_id == Integration.provider_accounting_id,
integration_create.provider_webshop_id == Integration.provider_webshop_id,
Integration.user_id == user.id,
)
Код: Выделить всё
integration_create
При проверке типа с помощью mypy возникает следующая ошибка:
Код: Выделить всё
syncly/api/integrations.py:64: error: Argument 1 to "where" of "Select" has incompatible type "bool"; expected "ColumnElement[bool] | _HasClauseElement[bool] | SQLCoreOperations[bool] | ExpressionElementRole[bool] | TypedColumnsClauseRole[bool] | Callable[[], ColumnElement[bool]] | LambdaElement" [arg-type]
Подробнее здесь: https://stackoverflow.com/questions/793 ... ct-has-inc