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
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF
1 changed files with 2 additions and 2 deletions

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.