From 1187070bbcb0e5146d43e2ba2903fbc6f4d50e3b Mon Sep 17 00:00:00 2001 From: nightcityblade Date: Fri, 24 Jul 2026 00:08:58 +0800 Subject: [PATCH] fix(python): remove duplicate hosted error alias --- sdks/python/pmxt/_hosted_errors.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdks/python/pmxt/_hosted_errors.py b/sdks/python/pmxt/_hosted_errors.py index db8be016..325a7db0 100644 --- a/sdks/python/pmxt/_hosted_errors.py +++ b/sdks/python/pmxt/_hosted_errors.py @@ -33,9 +33,7 @@ def __init__(self, status: int | str, detail: str | None = None) -> None: self.status = status_value self.detail = detail_value retryable = ( - self.DEFAULT_RETRYABLE - if self.DEFAULT_RETRYABLE is not None - else status_value >= 500 + self.DEFAULT_RETRYABLE if self.DEFAULT_RETRYABLE is not None else status_value >= 500 ) super().__init__(detail_value, code=self.DEFAULT_CODE, retryable=retryable) @@ -148,8 +146,6 @@ def _matches_no_liquidity(detail: str) -> bool: (None, _matches_no_liquidity, NoLiquidity), ] -ERROR_PATTERN_TABLE = HOSTED_ERROR_PATTERNS - def raise_from_response(response: httpx.Response) -> None: """Raise the hosted trading exception matching an upstream HTTP response."""