Skip to content

Commit d3c3388

Browse files
committed
[0.4.14] [fix] remove pydantic from imports
1 parent 81748c8 commit d3c3388

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
project = "tuneapi"
1414
copyright = "2024, Frello Technologies"
1515
author = "Frello Technologies"
16-
release = "0.4.13"
16+
release = "0.4.14"
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tuneapi"
3-
version = "0.4.13"
3+
version = "0.4.14"
44
description = "Tune AI APIs."
55
authors = ["Frello Technology Private Limited <[email protected]>"]
66
license = "MIT"

tuneapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Copyright © 2023- Frello Technology Private Limited
22

3-
__version__ = "0.4.13"
3+
__version__ = "0.4.14"

tuneapi/utils/subway.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
# REMEMBER: nothing from outside tune should be imported in utils
33

44
from requests import Session
5-
from pydantic import BaseModel
65
from typing import Dict, Any, Optional, Tuple
76

87
from tuneapi.utils.logger import logger
98
from tuneapi.utils.misc import SimplerTimes
10-
from tuneapi.utils.serdeser import to_json
119

1210

1311
class SubwayClientError(Exception):
@@ -143,8 +141,6 @@ def __call__(
143141

144142
items = {}
145143
if json:
146-
if isinstance(json, BaseModel):
147-
json = json.model_dump()
148144
items["json"] = json
149145
if data:
150146
items["data"] = data

0 commit comments

Comments
 (0)