Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Include global variables in variables found by get_function_nonlocals #25936

Merged
merged 3 commits into from
Sep 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Lint
  • Loading branch information
nfcampos committed Sep 2, 2024
commit 89e15214939207c5e12cfde5c28d5471e8873e87
4 changes: 2 additions & 2 deletions libs/core/tests/unit_tests/runnables/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from typing import Callable, Dict
from typing import Callable, Dict, Tuple

import pytest

Expand Down Expand Up @@ -59,7 +59,7 @@ def my_func3(input: str) -> str:
def my_func4(input: str) -> str:
return global_agent.invoke(input)

def my_func5() -> Callable[[str], str]:
def my_func5() -> Tuple[Callable[[str], str], RunnableLambda]:
global_agent = RunnableLambda(lambda x: x * 3)

def my_func6(input: str) -> str:
Expand Down
Loading