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

Method __call__

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

Source from the content-addressed store, hash-verified

1498 calls = 0
1499
1500 def __call__(self, *, force_refresh: bool = False) -> AccessToken: # noqa: ARG002
1501 self.calls += 1
1502 if self.calls == 1:
1503 return first
1504 raise WorkloadIdentityError("backend down")
1505
1506 provider = P()
1507 cache = TokenCache(provider, time_source=clock)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected