[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 from __future__ import annotations
import os
import sys import sys
from typing import TYPE_CHECKING, cast from typing import TYPE_CHECKING, cast

View File

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

View File

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

View File

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

View File

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