Skip to content

Commit

Permalink
Revert "alternative way of ignoring things"
Browse files Browse the repository at this point in the history
This reverts commit deaa62e.
  • Loading branch information
bpkroth committed Nov 22, 2024
1 parent deaa62e commit 7b7f8f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _template_from_to(self, config_key: str) -> List[Tuple[Template, Template]]:
def _expand(
from_to: Iterable[Tuple[Template, Template]],
params: Mapping[str, TunableValue],
) -> Generator[Tuple[str, str], None, None]: # pylint: disable=unnecessary-default-type-args
) -> Generator[Tuple[str, str], None, None]:
"""
Substitute $var parameters in from/to path templates.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def ssh_test_server(
ssh_test_server_hostname: str,
docker_compose_project_name: str,
locked_docker_services: DockerServices,
) -> Generator[SshTestServerInfo, None, None]: # pylint: disable=unnecessary-default-type-args
) -> Generator[SshTestServerInfo, None, None]:
"""
Fixture for getting the ssh test server services setup via docker-compose using
pytest-docker.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@


@contextmanager
def closeable_temp_file(
**kwargs: Any,
) -> Generator[_TemporaryFileWrapper, None, None]: # pylint: disable=unnecessary-default-type-args
def closeable_temp_file(**kwargs: Any) -> Generator[_TemporaryFileWrapper, None, None]:
"""
Provides a context manager for a temporary file that can be closed and still
unlinked.
Expand Down
6 changes: 3 additions & 3 deletions mlos_bench/mlos_bench/tests/storage/sql/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def storage() -> SqlStorage:
def exp_storage(
storage: SqlStorage,
tunable_groups: TunableGroups,
) -> Generator[SqlStorage.Experiment, None, None]: # pylint: disable=unnecessary-default-type-args
) -> Generator[SqlStorage.Experiment, None, None]:
"""
Test fixture for Experiment using in-memory SQLite3 storage.
Expand All @@ -60,7 +60,7 @@ def exp_storage(
@pytest.fixture
def exp_no_tunables_storage(
storage: SqlStorage,
) -> Generator[SqlStorage.Experiment, None, None]: # pylint: disable=unnecessary-default-type-args
) -> Generator[SqlStorage.Experiment, None, None]:
"""
Test fixture for Experiment using in-memory SQLite3 storage.
Expand All @@ -84,7 +84,7 @@ def exp_no_tunables_storage(
def mixed_numerics_exp_storage(
storage: SqlStorage,
mixed_numerics_tunable_groups: TunableGroups,
) -> Generator[SqlStorage.Experiment, None, None]: # pylint: disable=unnecessary-default-type-args
) -> Generator[SqlStorage.Experiment, None, None]:
"""
Test fixture for an Experiment with mixed numerics tunables using in-memory SQLite3
storage.
Expand Down
8 changes: 1 addition & 7 deletions mlos_bench/mlos_bench/tunables/tunable_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,7 @@ def __setitem__(
self._index[name][name] = value
return self._index[name][name]

def __iter__(
self,
) -> Generator[ # pylint: disable=unnecessary-default-type-args
Tuple[Tunable, CovariantTunableGroup],
None,
None,
]:
def __iter__(self) -> Generator[Tuple[Tunable, CovariantTunableGroup], None, None]:
"""
An iterator over all tunables in the group.
Expand Down

0 comments on commit 7b7f8f4

Please sign in to comment.