Skip to content

Commit f2440a6

Browse files
author
Austin Zielman
committed
Version 1.3.0
1 parent f38faad commit f2440a6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

abacusai/api_class/abstract.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def from_dict(cls, input_dict: dict):
150150
return None
151151
obj = None
152152
if input_dict:
153-
if builder := cls._get_builder():
153+
builder = cls._get_builder()
154+
if builder:
154155
config_class_key = None
155156
value = next((key for key, val in builder.config_class_map.items() if val.__name__ == cls.__name__), None)
156157
input_dict_with_config_key = input_dict

abacusai/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,8 @@ def _call_api(
780780

781781
def _proxy_request(self, name: str, method: str = 'POST', query_params: dict = None, body: dict = None, files=None, parse_type=None, is_sync: bool = False, streamable_response: bool = False):
782782
headers = {'APIKEY': self.api_key}
783-
if deployment_id := os.getenv('ABACUS_DEPLOYMENT_ID'):
783+
deployment_id = os.getenv('ABACUS_DEPLOYMENT_ID')
784+
if deployment_id:
784785
query_params = {**(query_params or {}),
785786
'environmentDeploymentId': deployment_id}
786787
endpoint = self.proxy_endpoint

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import find_packages, setup
22

33

4-
__version__ = '1.2.9'
4+
__version__ = '1.3.0'
55

66

77
setup(name='abacusai',
@@ -22,9 +22,9 @@
2222
'Topic :: Utilities',
2323
'License :: OSI Approved :: MIT License',
2424
'Programming Language :: Python :: 3',
25-
'Programming Language :: Python :: 3.7',
2625
'Programming Language :: Python :: 3.8',
2726
'Programming Language :: Python :: 3.9',
2827
'Programming Language :: Python :: 3.10',
2928
'Programming Language :: Python :: 3.11',
29+
'Programming Language :: Python :: 3.12',
3030
])

0 commit comments

Comments
 (0)