Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ foo
Function
foo
tests/test_validate_call.py:157–158 ·
view source on GitHub ↗
(a: int, b: int)
Source
from the content-addressed store, hash-verified
155
def
test_args() -> None:
156
@validate_call
157
def
foo(a: int, b: int):
158
return
f
'{a}, {b}'
159
160
assert foo(1, 2) ==
'1, 2'
161
assert foo(*[1, 2]) ==
'1, 2'
Callers
15
test_args
Function · 0.70
test_kwargs
Function · 0.70
test_untyped
Function · 0.70
test_var_args_kwargs
Function · 0.70
test_unpacked_typed_dict_kwargs_overlaps
Function · 0.70
test_unpacked_typed_dict_kwargs
Function · 0.70
test_unpacked_generic_typed_dict_kwargs
Function · 0.70
test_unpacked_typed_dict_kwargs_functional_syntax
Function · 0.70
test_unpacked_typed_dict_kwargs_closed
Function · 0.70
test_unpacked_typed_dict_extra_items
Function · 0.70
test_field_can_provide_factory
Function · 0.70
test_args_name
Function · 0.70
Calls
5
Field
Function · 0.90
AliasChoices
Class · 0.90
bar
Function · 0.70
M2
Class · 0.70
items
Method · 0.45
Tested by
no test coverage detected