mirror of
https://github.com/langgenius/dify.git
synced 2026-05-25 19:00:43 -04:00
chore: Remove pyright in favor of pyrefly (#36154)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user