Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
26
def
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_args
Function · 0.70
test_kwargs
Function · 0.70
test_untyped
Function · 0.70
test_var_args_kwargs
Function · 0.70
test_field_can_provide_factory
Function · 0.70
test_args_name
Function · 0.70
run
Function · 0.70
test_async
Function · 0.70
test_string_annotation
Function · 0.70
test_config_title
Function · 0.70
test_config_title_cls
Function · 0.70
test_config_arbitrary_types_allowed
Function · 0.70
Calls
1
Field
Function · 0.90
Tested by
no test coverage detected