MCPcopy
hub / github.com/pydantic/pydantic / foo

Function foo

tests/test_deprecated_validate_arguments.py:28–29  ·  tests/test_deprecated_validate_arguments.py::foo
(a: int, b: int)

Source from the content-addressed store, hash-verified

26def test_args():
27 @validate_arguments
28 def foo(a: int, b: int):
29 return f&class="cm">#x27;{a}, {b}'
30
31 assert foo(1, 2) == &class="cm">#x27;1, 2'
32 assert foo(*[1, 2]) == &class="cm">#x27;1, 2'

Callers 14

test_argsFunction · 0.70
test_kwargsFunction · 0.70
test_untypedFunction · 0.70
test_var_args_kwargsFunction · 0.70
test_args_nameFunction · 0.70
runFunction · 0.70
test_asyncFunction · 0.70
test_string_annotationFunction · 0.70
test_config_titleFunction · 0.70
test_config_title_clsFunction · 0.70

Calls 1

FieldFunction · 0.90

Tested by

no test coverage detected