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

Class _StubWork

tests/lib/environments/test_poller_method.py:42–47  ·  view source on GitHub ↗

Minimal stand-in for `BetaSelfHostedWork` — only fields the poller reads.

Source from the content-addressed store, hash-verified

40
41
42class _StubWork:
43 """Minimal stand-in for `BetaSelfHostedWork` — only fields the poller reads."""
44
45 def __init__(self, *, id: str = "work_1") -> None:
46 self.id = id
47 self.data = _StubWorkData()
48
49
50def _api_status_error(code: int) -> APIStatusError:

Calls

no outgoing calls