Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ foo
Method
foo
tests/test_deprecated_validate_arguments.py:269–271 ·
view source on GitHub ↗
(self, a: int, b: int)
Source
from the content-addressed store, hash-verified
267
268
@validate_arguments
269
def
foo(self, a: int, b: int):
270
assert self.v == a
271
return
f
'{a}, {b}'
272
273
x = X(4)
274
assert x.foo(4, 2) ==
'4, 2'
Callers
3
test_item_method
Function · 0.95
test_class_method
Function · 0.95
test_positional_only
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected