Skip to content

Commit

Permalink
Fix compatibility with pydantic 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
romis2012 committed Aug 22, 2023
1 parent da901d7 commit a1e1f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydantic_collections/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'pydantic-collections'
__version__ = '0.5.0'
__version__ = '0.5.1'

from pydantic.version import VERSION as PYDANTIC_VERSION

Expand Down
2 changes: 1 addition & 1 deletion pydantic_collections/_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class BaseCollectionModel(
__element__: Element

model_config = CollectionModelConfig(
extra='forbid',
# extra='forbid',
validate_assignment=True,
validate_assignment_strict=True,
)
Expand Down

0 comments on commit a1e1f01

Please sign in to comment.