From ec2e148442441fb0af4a241e016d47c2140cee9b Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 15 Aug 2024 22:17:43 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- src/orb/_base_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/orb/_base_client.py b/src/orb/_base_client.py index adf1a9b2..bd3deb81 100644 --- a/src/orb/_base_client.py +++ b/src/orb/_base_client.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys import json import time import uuid @@ -2011,7 +2012,6 @@ def get_python_version() -> str: def get_architecture() -> Arch: try: - python_bitness, _ = platform.architecture() machine = platform.machine().lower() except Exception: return "unknown" @@ -2027,7 +2027,7 @@ def get_architecture() -> Arch: return "x64" # TODO: untested - if python_bitness == "32bit": + if sys.maxsize <= 2**32: return "x32" if machine: