Skip to content

Commit

Permalink
DataclassToProto: Remove unnecessary @DataClass layering
Browse files Browse the repository at this point in the history
Since @dataobject takes care of making the wrapped class a dataclass, we
don't need that extra line. Also grep turned up some dead code

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed May 2, 2023
1 parent d9e9648 commit 7e331d4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions caikit/core/data_model/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"""
Common data model objects used to identify the producer of a given output
"""
# Standard
from dataclasses import dataclass

# Local
from .dataobject import CAIKIT_DATA_MODEL, dataobject
Expand All @@ -24,7 +22,6 @@


@dataobject(PACKAGE_COMMON)
@dataclass
class ProducerId:
"""Information about a data structure and the module that produced it."""

Expand Down
2 changes: 0 additions & 2 deletions caikit/interfaces/common/data_model/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

# Standard
from dataclasses import dataclass
from typing import List

# First Party
Expand All @@ -28,7 +27,6 @@


@dataobject(PACKAGE_COMMON)
@dataclass
class ProducerPriority:
"""An ordered list of ProducerId structures in descending order of priority.
This is used when handling conflicts between multiple producers of the same
Expand Down
6 changes: 0 additions & 6 deletions caikit/runtime/model_management/training_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
from caikit.interfaces.runtime.data_model import TrainingStatus
from caikit.runtime.types.caikit_runtime_exception import CaikitRuntimeException

#
# @dataclasses.dataclass
# class TrainingStuff:
# status: TrainingStatus
# exception: Exception


class TrainingManager:
__instance: "TrainingManager" = None
Expand Down

0 comments on commit 7e331d4

Please sign in to comment.