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

Function __repr_args__

tests/lib/utils.py:26–27  ·  view source on GitHub ↗
(self: pydantic.BaseModel)

Source from the content-addressed store, hash-verified

24 original_repr = pydantic.BaseModel.__repr_args__
25
26 def __repr_args__(self: pydantic.BaseModel) -> ReprArgs:
27 return sorted(original_repr(self), key=lambda arg: arg[0] or arg)
28
29 def __repr_name__(self: pydantic.BaseModel) -> str:
30 # Drop generic parameters from the name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected