MCPcopy
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

155def 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'

Calls 5

FieldFunction · 0.90
AliasChoicesClass · 0.90
barFunction · 0.70
M2Class · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected