diff --git a/src/plette/__init__.py b/src/plette/__init__.py index ec56d5d..dbd68f5 100644 --- a/src/plette/__init__.py +++ b/src/plette/__init__.py @@ -3,7 +3,7 @@ "Lockfile", "Pipfile", ] -__version__ = '2.0.1' +__version__ = '2.0.2' from .lockfiles import Lockfile from .pipfiles import Pipfile diff --git a/src/plette/models/__init__.py b/src/plette/models/__init__.py index babe1f9..9f9b163 100644 --- a/src/plette/models/__init__.py +++ b/src/plette/models/__init__.py @@ -1,6 +1,6 @@ __all__ = [ - "DataView", "DataModelCollection", "DataModelMapping", "DataModelSequence", - "validate", "DataValidationError", + "DataModel", "DataModelCollection", "DataModelMapping", "DataModelSequence", + "DataValidationError", "Hash", "Package", "Requires", "Source", "Script", "Meta", "PackageCollection", "ScriptCollection", "SourceCollection", ] diff --git a/src/plette/pipfiles.py b/src/plette/pipfiles.py index aaf8da7..bf2c92c 100644 --- a/src/plette/pipfiles.py +++ b/src/plette/pipfiles.py @@ -72,7 +72,7 @@ def __getitem__(self, key): return value def __setitem__(self, key, value): - if isinstance(value, DataView): + if isinstance(value, DataModel): self._data[key] = value._data else: self._data[key] = value