From a1e1f019b8dc1118552c82d1a55ea30db58e3a56 Mon Sep 17 00:00:00 2001 From: Roman Snegirev Date: Tue, 22 Aug 2023 10:38:40 +0300 Subject: [PATCH] Fix compatibility with pydantic 2.2.1 --- pydantic_collections/__init__.py | 2 +- pydantic_collections/_v2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pydantic_collections/__init__.py b/pydantic_collections/__init__.py index 1728af7..cdfeb40 100644 --- a/pydantic_collections/__init__.py +++ b/pydantic_collections/__init__.py @@ -1,5 +1,5 @@ __title__ = 'pydantic-collections' -__version__ = '0.5.0' +__version__ = '0.5.1' from pydantic.version import VERSION as PYDANTIC_VERSION diff --git a/pydantic_collections/_v2.py b/pydantic_collections/_v2.py index c3be659..5e9b539 100644 --- a/pydantic_collections/_v2.py +++ b/pydantic_collections/_v2.py @@ -92,7 +92,7 @@ class BaseCollectionModel( __element__: Element model_config = CollectionModelConfig( - extra='forbid', + # extra='forbid', validate_assignment=True, validate_assignment_strict=True, )