Skip to content

Commit 0276722

Browse files
committed
ruff
1 parent 411d396 commit 0276722

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/agents/handoffs/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ def handoff(
129129
is_enabled: bool
130130
| Callable[[RunContextWrapper[Any], Agent[TContext]], MaybeAwaitable[bool]] = True,
131131
) -> Handoff[TContext, Agent[TContext]]:
132-
assert (on_handoff and input_type) or not (on_handoff and input_type), (
133-
"You must provide either both on_handoff and input_type, or neither"
134-
)
132+
assert (on_handoff and input_type) or not (
133+
on_handoff and input_type
134+
), "You must provide either both on_handoff and input_type, or neither"
135135
type_adapter: TypeAdapter[Any] | None
136136
if input_type is not None:
137137
assert callable(on_handoff), "on_handoff must be callable"

0 commit comments

Comments
 (0)