Skip to content

Commit

Permalink
Simplify deprecation of error names to try to fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman committed Jun 5, 2023
1 parent db9b7ac commit e9294be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
3 changes: 0 additions & 3 deletions kedro/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
from .core import (
AbstractDataSet,
AbstractVersionedDataSet,
DataSetAlreadyExistsError,
DatasetAlreadyExistsError,
DataSetError,
DatasetError,
DataSetNotFoundError,
DatasetNotFoundError,
Version,
)
Expand Down
15 changes: 3 additions & 12 deletions kedro/io/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ class DatasetError(Exception):
pass


class DataSetError(metaclass=DeprecatedClassMeta):
# pylint: disable=missing-class-docstring, too-few-public-methods

_DeprecatedClassMeta__alias = DatasetError
DataSetError = DatasetError


class DatasetNotFoundError(DatasetError):
Expand All @@ -60,10 +57,7 @@ class DatasetNotFoundError(DatasetError):
pass


class DataSetNotFoundError(metaclass=DeprecatedClassMeta):
# pylint: disable=missing-class-docstring, too-few-public-methods

_DeprecatedClassMeta__alias = DatasetNotFoundError
DataSetNotFoundError = DatasetNotFoundError


class DatasetAlreadyExistsError(DatasetError):
Expand All @@ -74,10 +68,7 @@ class DatasetAlreadyExistsError(DatasetError):
pass


class DataSetAlreadyExistsError(metaclass=DeprecatedClassMeta):
# pylint: disable=missing-class-docstring, too-few-public-methods

_DeprecatedClassMeta__alias = DatasetAlreadyExistsError
DataSetAlreadyExistsError = DatasetAlreadyExistsError


class Wrapper(object):
Expand Down

0 comments on commit e9294be

Please sign in to comment.