chore: Remove pyright in favor of pyrefly (#36154)

This commit is contained in:
chariri
2026-05-14 14:49:08 +09:00
committed by GitHub
parent b9e3130388
commit af4b9bfa8f
31 changed files with 87 additions and 181 deletions

View File

@@ -1,5 +1,9 @@
from typing import Any, cast
import socketio # type: ignore[reportMissingTypeStubs]
from configs import dify_config
sio = socketio.Server(async_mode="gevent", cors_allowed_origins=dify_config.CONSOLE_CORS_ALLOW_ORIGINS)
# TODO: FIXME(chariri) - Casting to any because app_factory attaches the
# current app as the `app` attribute on this - Bad.
sio = cast(Any, socketio.Server(async_mode="gevent", cors_allowed_origins=dify_config.CONSOLE_CORS_ALLOW_ORIGINS))