Skip to content

feat(python): export hosted trading errors - #1988

Draft
shard872 wants to merge 1 commit into
pmxt-dev:mainfrom
shard872:agent/export-hosted-errors
Draft

feat(python): export hosted trading errors#1988
shard872 wants to merge 1 commit into
pmxt-dev:mainfrom
shard872:agent/export-hosted-errors

Conversation

@shard872

@shard872 shard872 commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • export all ten hosted trading error classes from the Python package root
  • add regression coverage for direct imports, __all__, and class-object identity
  • preserve the existing implementations and lazy pmxt.errors exports

Why

Python users currently need a private pmxt._hosted_errors import to catch specific hosted trading failures. This gives them the same stable package-root API available in the TypeScript SDK.

Closes #1329.

Validation

  • python -m pytest tests/test_public_exports.py tests/test_hosted_errors.py tests/test_hosted_error_mapping.py — 68 passed
  • git diff --check

AI assistance disclosure

This contribution was prepared with OpenAI Codex (GPT-5.6) and received a separate Sol/High review. The final diff and tests were independently verified before publication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK drift: Hosted error classes not exported at package level in Python; TypeScript exports all of hosted-errors.ts

1 participant