From fdb1bffd191f14ec56da11e239bf08f29aee81c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 00:17:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/model_metadata/errors.py | 5 ----- src/model_metadata/model_info.py | 1 - 2 files changed, 6 deletions(-) diff --git a/src/model_metadata/errors.py b/src/model_metadata/errors.py index d5bcce7..7c8739b 100644 --- a/src/model_metadata/errors.py +++ b/src/model_metadata/errors.py @@ -3,14 +3,12 @@ class ModelMetadataError(Exception): - """Base error for model_metadata package.""" pass class MetadataNotFoundError(ModelMetadataError): - """Raise if metadata cannot be found.""" def __init__(self, path_to_metadata: str): @@ -21,7 +19,6 @@ def __str__(self) -> str: class MissingSectionError(ModelMetadataError): - """Raise if a section in not found in the metadata.""" def __init__(self, name: str): @@ -36,7 +33,6 @@ def __str__(self) -> str: class MissingValueError(ModelMetadataError): - """Raise if a value is not found in a metadata section.""" def __init__(self, name: str): @@ -51,7 +47,6 @@ def __str__(self) -> str: class BadEntryPointError(ModelMetadataError): - """Raise if an entry-point string is bad, in some way.""" def __init__(self, entry_point: str, msg: str | None = None): diff --git a/src/model_metadata/model_info.py b/src/model_metadata/model_info.py index 803fbba..3ea7925 100644 --- a/src/model_metadata/model_info.py +++ b/src/model_metadata/model_info.py @@ -137,7 +137,6 @@ def object_properties(obj: ModelInfo) -> tuple[tuple[str, Any], ...]: class ModelInfo: - """Information about a model.""" def __init__(