MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / foo

Function foo

tests/test_required_args.py:10–11  ·  view source on GitHub ↗
(a: str | None = None)

Source from the content-addressed store, hash-verified

8def test_too_many_positional_params() -> None:
9 @required_args(["a"])
10 def foo(a: str | None = None) -> str | None:
11 return a
12
13 with pytest.raises(TypeError, match=r"foo\(\) takes 1 argument\(s\) but 2 were given"):
14 foo("a", "b") # type: ignore

Callers 6

test_positional_paramFunction · 0.85
test_keyword_only_paramFunction · 0.85
test_multiple_paramsFunction · 0.85
test_multiple_variantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected