mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-10-01 14:05:10 +02:00
Fix optional types
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user