Skip to content

Commit 1b97993

Browse files
authored
Drop support for pydantic v1 (#505)
1 parent 85fb750 commit 1b97993

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ packages = [
2828
python = "^3.11"
2929
aiohttp = ">=3.0.0"
3030
yarl = ">=1.6.0"
31-
pydantic = ">=1.10.8"
31+
pydantic = ">=2.0.0"
3232

3333
[tool.poetry.group.dev.dependencies]
3434
aresponses = "3.0.0"

src/youtubeaio/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,4 @@ def content_details(self) -> YouTubePlaylistItemContentDetails:
281281
return self.nullable_content_details
282282

283283

284-
YouTubeChannelSnippet.update_forward_refs()
284+
YouTubeChannelSnippet.model_rebuild()

0 commit comments

Comments
 (0)