Fix optional types

This commit is contained in:
Tat Dat Duong
2024-10-08 20:09:51 +02:00
parent f9e900f39a
commit b51f5d6345
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11634,7 +11634,7 @@ def test_debug_subgraphs():
assert len(checkpoint_events) == len(checkpoint_history)
def normalize_config(config: dict | None) -> dict | None:
def normalize_config(config: Optional[dict]) -> Optional[dict]:
if config is None:
return None
return config["configurable"]
+1 -1
View File
@@ -9871,7 +9871,7 @@ async def test_debug_subgraphs():
assert len(checkpoint_events) == len(checkpoint_history)
def normalize_config(config: Optional[dict, None]) -> Optional[dict, None]:
def normalize_config(config: Optional[dict]) -> Optional[dict]:
if config is None:
return None
return config["configurable"]