Skip to content

Commit

Permalink
Import from pydantic v2 lib first
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jan 24, 2024
1 parent 14929c6 commit abdcfcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

## [1.0.8] - Unreleased
- Updated dependencies
- Import from pydantic v2 lib first

## [1.0.7] - 2024-01-07
- Support pydantic v1 & v2
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

## [1.0.8] - Unreleased
- Updated dependencies
- Import from pydantic v2 lib first

## [1.0.7] - 2024-01-07
- Support pydantic v1 & v2
Expand Down
4 changes: 2 additions & 2 deletions iscc_core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from loguru import logger as log

try:
from pydantic import BaseSettings, Field
except ImportError:
from pydantic.v1 import BaseSettings, Field
except ImportError: # pragma: no cover
from pydantic import BaseSettings, Field


class CoreOptions(BaseSettings):
Expand Down

0 comments on commit abdcfcd

Please sign in to comment.