Skip to content

Commit

Permalink
chore(internal): use different 32bit detection method (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 19, 2024
1 parent 40d9aea commit a0a62f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finch/_base_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import sys
import json
import time
import uuid
Expand Down Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit a0a62f8

Please sign in to comment.