Skip to content

Commit

Permalink
fixed mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kei-mo committed May 26, 2022
1 parent 6b06b05 commit b0ff609
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Empty file added benchmarks/kurobako/__init__.py
Empty file.
15 changes: 4 additions & 11 deletions benchmarks/kurobako/problems/wfg/transformation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
import numpy as np


# class BaseTransformations(object, metaclass=abc.ABCMeta):
# @abc.abstractmethod
# def __call__(self, *args, **kwargs):

# raise NotImplementedError


class BaseIdenticalTransformations(metaclass=abc.ABCMeta):
@abc.abstractclassmethod
class BaseIdenticalTransformation(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __call__(self, y: float) -> float:
raise NotImplementedError

Expand All @@ -40,14 +33,14 @@ def __call__(self, y: np.ndarray) -> float:


BaseTransformations = Union[
BaseIdenticalTransformations,
BaseIdenticalTransformation,
BaseBiasTransformation,
BaseShiftTransformation,
BaseReductionTransformation,
]


class IdenticalTransformation(BaseIdenticalTransformations):
class IdenticalTransformation(BaseIdenticalTransformation):
def __init__(self) -> None:
pass

Expand Down
Empty file added benchmarks/naslib/__init__.py
Empty file.

0 comments on commit b0ff609

Please sign in to comment.