chore(graph_engine): Use XXX | None instead of Optional[XXX]

This commit is contained in:
-LAN-
2025-08-28 05:09:33 +08:00
parent 1e12c1cbf2
commit 8aab7f49c3

View File

@@ -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.