Skip to content

Commit 43e5b78

Browse files
committed
dropped stale comments
1 parent c47abd6 commit 43e5b78

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

effectful/handlers/llm/template.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,7 @@ def define[**Q, V](
295295
*typing.cast(list[MutableMapping[str, Any]], contexts)
296296
)
297297

298-
is_recursive = _is_recursive_signature(inspect.signature(default))
299-
# todo: make this more pythonic
300-
if not is_recursive:
301-
# drop default.__name__ from context
302-
pass
303-
304298
op = super().define(default, *args, **kwargs)
305299
op.__context__ = context # type: ignore[attr-defined]
306-
# todo: drop self from contexts if not is_recursive
307300

308301
return typing.cast(Template[Q, V], op)

0 commit comments

Comments
 (0)