[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-04-09 03:36:49 +00:00 committed by GitHub
parent 5cac278366
commit cd4489563e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import os
from __future__ import annotations
import os
import sys
from typing import TYPE_CHECKING, cast

View File

@ -4,6 +4,7 @@ from datetime import datetime
from typing import Literal
import pytz
from core.file import helpers as file_helpers
from flask import request
from flask_restx import Resource, fields, marshal_with
from pydantic import BaseModel, Field, field_validator, model_validator
@ -37,7 +38,6 @@ from controllers.console.wraps import (
only_edition_cloud,
setup_required,
)
from core.file import helpers as file_helpers
from extensions.ext_database import db
from fields.member_fields import Account as AccountResponse
from libs.datetime_utils import naive_utc_now

View File

@ -362,6 +362,7 @@ class WorkflowService:
# commit db session changes
db.session.commit()
def restore_published_workflow_to_draft(
self,
*,

View File

@ -10,10 +10,9 @@ This test suite covers:
"""
import json
from unittest.mock import ANY, MagicMock, Mock, patch
import uuid
from typing import Any, cast
from unittest.mock import ANY, MagicMock, Mock, patch
import pytest
from graphon.entities import WorkflowNodeExecution

View File

@ -584,9 +584,6 @@
},
"tailwindcss/enforce-consistent-class-order": {
"count": 1
},
"ts/no-explicit-any": {
"count": 5
}
},
"app/components/app/app-publisher/publish-with-multiple-model.tsx": {
@ -7926,11 +7923,6 @@
"count": 3
}
},
"app/components/workflow-app/components/workflow-main.tsx": {
"ts/no-explicit-any": {
"count": 2
}
},
"app/components/workflow-app/components/workflow-onboarding-modal/index.tsx": {
"tailwindcss/enforce-consistent-class-order": {
"count": 3
@ -8331,11 +8323,6 @@
"count": 1
}
},
"app/components/workflow/hooks-store/store.ts": {
"ts/no-explicit-any": {
"count": 6
}
},
"app/components/workflow/hooks/__tests__/use-checklist.spec.ts": {
"react/error-boundaries": {
"count": 1
@ -8414,7 +8401,7 @@
"count": 1
},
"ts/no-explicit-any": {
"count": 2
"count": 1
}
},
"app/components/workflow/nodes/_base/components/add-variable-popup-with-position.tsx": {