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

Method __call__

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

Source from the content-addressed store, hash-verified

1404 calls = 0
1405
1406 def __call__(self, *, force_refresh: bool = False) -> AccessToken: # noqa: ARG002
1407 self.calls += 1
1408 if self.calls == 1:
1409 return first
1410 raise WorkloadIdentityError("backend down")
1411
1412 provider = P()
1413 cache = TokenCache(provider, time_source=clock)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected