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

Method __call__

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

Source from the content-addressed store, hash-verified

1592 self.calls = 0
1593
1594 def __call__(self, *, force_refresh: bool = False) -> AccessToken: # noqa: ARG002
1595 self.calls += 1
1596 return self.tokens[min(self.calls - 1, len(self.tokens) - 1)]
1597
1598
1599class TestTokenCache:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected