Skip to content

Commit

Permalink
[0.4.14] [fix] remove pydantic from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbonde committed Aug 4, 2024
1 parent 81748c8 commit d3c3388
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tuneapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright © 2023- Frello Technology Private Limited

__version__ = "0.4.13"
__version__ = "0.4.14"
4 changes: 0 additions & 4 deletions tuneapi/utils/subway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3c3388

Please sign in to comment.