Home / Function/ test_dict_int_op_invalid_types() — langchain Function Reference

test_dict_int_op_invalid_types() — langchain Function Reference

Architecture documentation for the test_dict_int_op_invalid_types() function in test_usage.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  e2e25762_8a84_ef94_f45e_38fce683548f["test_dict_int_op_invalid_types()"]
  65a4c465_09cd_7d1a_7340_aaf3bfe764ad["test_usage.py"]
  e2e25762_8a84_ef94_f45e_38fce683548f -->|defined in| 65a4c465_09cd_7d1a_7340_aaf3bfe764ad
  style e2e25762_8a84_ef94_f45e_38fce683548f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_usage.py lines 38–45

def test_dict_int_op_invalid_types() -> None:
    left = {"a": 1, "b": "string"}
    right = {"a": 2, "b": 3}
    with pytest.raises(
        ValueError,
        match="Only dict and int values are supported",
    ):
        _dict_int_op(left, right, operator.add)

Domain

Subdomains

Frequently Asked Questions

What does test_dict_int_op_invalid_types() do?
test_dict_int_op_invalid_types() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_usage.py.
Where is test_dict_int_op_invalid_types() defined?
test_dict_int_op_invalid_types() is defined in libs/core/tests/unit_tests/utils/test_usage.py at line 38.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free