mirror of
https://github.com/langgenius/dify.git
synced 2026-03-31 01:46:51 +08:00
chore(graph_engine): Use XXX | None instead of Optional[XXX]
This commit is contained in:
parent
1e12c1cbf2
commit
8aab7f49c3
@ -7,7 +7,7 @@ Each instance uses a unique key for its command queue.
|
||||
"""
|
||||
|
||||
import json
|
||||
from typing import TYPE_CHECKING, Optional
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from ..entities.commands import AbortCommand, CommandType, GraphEngineCommand
|
||||
|
||||
@ -86,7 +86,7 @@ class RedisChannel:
|
||||
pipe.expire(self._key, self._command_ttl)
|
||||
pipe.execute()
|
||||
|
||||
def _deserialize_command(self, data: dict) -> Optional[GraphEngineCommand]:
|
||||
def _deserialize_command(self, data: dict) -> GraphEngineCommand | None:
|
||||
"""
|
||||
Deserialize a command from dictionary data.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user