style: apply Ruff auto-fixes from pre-commit hook

Made-with: Cursor
This commit is contained in:
Novice 2026-03-24 10:55:27 +08:00
parent 499d237b7e
commit c189de10f1
No known key found for this signature in database
GPG Key ID: A253106A7475AA3E
3 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,7 @@ def create_app() -> tuple[socketio.WSGIApp, DifyApp]:
app = create_flask_app_with_configs()
initialize_extensions(app)
setattr(sio, "app", app)
sio.app = app
socketio_app = socketio.WSGIApp(sio, app)
end_time = time.perf_counter()

View File

@ -42,7 +42,7 @@ def socket_connect(sid, environ, auth):
logging.warning("Socket connect rejected: missing user_id (sid=%s)", sid)
return False
with getattr(sio, "app").app_context():
with sio.app.app_context():
user = AccountService.load_logged_in_account(account_id=user_id)
if not user:
logging.warning("Socket connect rejected: user not found (user_id=%s, sid=%s)", user_id, sid)

View File

@ -138,7 +138,6 @@ if TYPE_CHECKING:
from core.skill.entities.skill_bundle import SkillBundle
from core.skill.entities.tool_dependencies import ToolDependencies, ToolDependency
from core.tools.__base.tool import Tool
from dify_graph.file.models import File
from dify_graph.runtime import GraphRuntimeState