Skip to content

Commit 64446f9

Browse files
CopilotTaoChenOSU
andcommitted
Apply ruff formatting to checkpoint encoding file
Co-authored-by: TaoChenOSU <[email protected]>
1 parent 610ddde commit 64446f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

python/packages/core/agent_framework/_workflows/_checkpoint_encoding.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def decode_checkpoint_value(value: Any) -> Any:
148148
if cls is not None:
149149
# Verify the class actually supports the model protocol
150150
if not _class_supports_model_protocol(cls):
151-
logger.debug(
152-
f"Class {type_key} does not support model protocol; returning raw value"
153-
)
151+
logger.debug(f"Class {type_key} does not support model protocol; returning raw value")
154152
return decoded_payload
155153
if strategy == "to_dict" and hasattr(cls, "from_dict"):
156154
with contextlib.suppress(Exception):
@@ -177,9 +175,7 @@ def decode_checkpoint_value(value: Any) -> Any:
177175
cls_dc: Any = getattr(module, class_name)
178176
# Verify the class is actually a dataclass type (not an instance)
179177
if not isinstance(cls_dc, type) or not is_dataclass(cls_dc):
180-
logger.debug(
181-
f"Class {type_key_dc} is not a dataclass type; returning raw value"
182-
)
178+
logger.debug(f"Class {type_key_dc} is not a dataclass type; returning raw value")
183179
return decoded_raw
184180
constructed = _instantiate_checkpoint_dataclass(cls_dc, decoded_raw)
185181
if constructed is not None:

0 commit comments

Comments
 (0)