8000 Remove pydantic dependency (#1289) · MAXIGAMESSUPPER/python-kasa@0058ad9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0058ad9

Browse files
authored
Remove pydantic dependency (python-kasa#1289)
Remove pydantic dependency in favor of mashumaro.
1 parent f7778aa commit 0058ad9

File tree

3 files changed

+1
-75
lines changed

3 files changed

+1
-75
lines changed

kasa/cli/discover.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from pprint import pformat as pf
77

88
import asyncclick as click
9-
from pydantic.v1 import ValidationError
109

1110
from kasa import (
1211
AuthenticationError,
@@ -208,7 +207,7 @@ def _echo_discovery_info(discovery_info) -> None:
208207

209208
try:
210209
dr = DiscoveryResult.from_dict(discovery_info)
211-
except ValidationError:
210+
except Exception:
212211
_echo_dictionary(discovery_info)
213212
return
214213

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ readme = "README.md"
88
requires-python = ">=3.11,<4.0"
99
dependencies = [
1010
"asyncclick>=8.1.7",
11-
"pydantic>=1.10.15",
1211
"cryptography>=1.9",
1312
"aiohttp>=3",
1413
"tzdata>=2024.2 ; platform_system == 'Windows'",

uv.lock

Lines changed: 0 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0