From d3c3388841617a18a7d1d88f83ba844181165045 Mon Sep 17 00:00:00 2001 From: yashbonde Date: Sun, 4 Aug 2024 19:34:34 +0530 Subject: [PATCH] [0.4.14] [fix] remove pydantic from imports --- docs/conf.py | 2 +- pyproject.toml | 2 +- tuneapi/__init__.py | 2 +- tuneapi/utils/subway.py | 4 ---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b9269f7..479153c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ project = "tuneapi" copyright = "2024, Frello Technologies" author = "Frello Technologies" -release = "0.4.13" +release = "0.4.14" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 9046919..4017692 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tuneapi" -version = "0.4.13" +version = "0.4.14" description = "Tune AI APIs." authors = ["Frello Technology Private Limited "] license = "MIT" diff --git a/tuneapi/__init__.py b/tuneapi/__init__.py index f249db8..dd62fef 100644 --- a/tuneapi/__init__.py +++ b/tuneapi/__init__.py @@ -1,3 +1,3 @@ # Copyright © 2023- Frello Technology Private Limited -__version__ = "0.4.13" +__version__ = "0.4.14" diff --git a/tuneapi/utils/subway.py b/tuneapi/utils/subway.py index 403f778..0d16baa 100644 --- a/tuneapi/utils/subway.py +++ b/tuneapi/utils/subway.py @@ -2,12 +2,10 @@ # REMEMBER: nothing from outside tune should be imported in utils from requests import Session -from pydantic import BaseModel from typing import Dict, Any, Optional, Tuple from tuneapi.utils.logger import logger from tuneapi.utils.misc import SimplerTimes -from tuneapi.utils.serdeser import to_json class SubwayClientError(Exception): @@ -143,8 +141,6 @@ def __call__( items = {} if json: - if isinstance(json, BaseModel): - json = json.model_dump() items["json"] = json if data: items["data"] = data