Skip to content

Commit

Permalink
fix: move PrivateAttr import to come from pydantic.v1
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jun 11, 2024
1 parent eb87ddf commit e26b67a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/uiprotect/data/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from typing import TYPE_CHECKING, Any, Literal, cast

try:
from pydantic.v1.fields import PrivateAttr
from pydantic.v1 import PrivateAttr
except ImportError:
from pydantic.fields import PrivateAttr

Expand Down
2 changes: 1 addition & 1 deletion src/uiprotect/data/nvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
from .user import User, UserLocation

try:
from pydantic.v1.fields import PrivateAttr
from pydantic.v1 import PrivateAttr
except ImportError:
from pydantic.fields import PrivateAttr

Expand Down
2 changes: 1 addition & 1 deletion src/uiprotect/data/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any

try:
from pydantic.v1.fields import PrivateAttr
from pydantic.v1 import PrivateAttr
except ImportError:
from pydantic.fields import PrivateAttr

Expand Down

0 comments on commit e26b67a

Please sign in to comment.