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

Method __call__

tests/lib/test_credentials.py:1674–1678  ·  view source on GitHub ↗
(self, *, force_refresh: bool = False)

Source from the content-addressed store, hash-verified

1672 calls = 0
1673
1674 def __call__(self, *, force_refresh: bool = False) -> AccessToken: # noqa: ARG002
1675 self.calls += 1
1676 if self.calls == 1:
1677 return first
1678 raise WorkloadIdentityError("backend down")
1679
1680 provider = P()
1681 cache = TokenCache(provider, time_source=clock)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected