Skip to content

Commit

Permalink
Update shazamio version as well as pydantic version to >2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielamar101 committed Oct 24, 2024
1 parent 11df2e4 commit bb2d1cd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shazamio"
version = "0.6.0"
version = "0.7.0"
description = "Is a asynchronous framework from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp."
authors = ["dotX12"]
license = "MIT License"
Expand All @@ -21,7 +21,6 @@ pydub = "^0.25.1"
dataclass-factory = "2.16"
aiofiles = "23.2.1"
anyio = "4.3.0"
pydantic = "^1.10.2"
shazamio-core = "^1.0.7"
aiohttp-retry = "^2.8.3"

Expand Down
30 changes: 15 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
aiofiles~=0.8.0
aiohttp~=3.8.1
attrs==20.3.0
chardet==3.0.4
dataclass-factory==2.16
idna==3.1
multidict==5.1.0
numpy~=1.22.1
pydub==0.25.1
typing-extensions==3.7.4.3
yarl==1.6.3
aiofiles
aiohttp
attrs
chardet
dataclass-factory
idna
multidict
numpy
pydub
typing-extensions
yarl

pytest~=7.1.2
setuptools~=65.5.1
pytest-asyncio~=0.19.0
anyio~=3.6.1
pytest
setuptools
pytest-asyncio
anyio
11 changes: 5 additions & 6 deletions shazamio/schemas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import TypeVar

from pydantic import BaseModel
from pydantic.generics import GenericModel

T = TypeVar("T", bound=BaseModel)

Expand All @@ -17,22 +16,22 @@ class BaseIdTypeHref(BaseHref):
type: str


class BaseIdTypeHrefAttributesModel(GenericModel, BaseIdTypeHref, Generic[T]):
class BaseIdTypeHrefAttributesModel(BaseIdTypeHref, Generic[T]):
attributes: T


class BaseAttributesModel(GenericModel, BaseModel, Generic[T]):
class BaseAttributesModel(BaseModel, Generic[T]):
attributes: T


class BaseDataModel(GenericModel, BaseModel, Generic[T]):
class BaseDataModel(BaseModel, Generic[T]):
data: T


class BaseHrefNextData(GenericModel, BaseHref, Generic[T]):
class BaseHrefNextData(BaseHref, Generic[T]):
next: Optional[str] = None
data: T


class BaseHrefData(GenericModel, BaseHref, Generic[T]):
class BaseHrefData(BaseHref, Generic[T]):
data: T

0 comments on commit bb2d1cd

Please sign in to comment.