Skip to content

Commit

Permalink
Remove unused imports from ax/ (#2501)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2501

Reviewed By: mpolson64

Differential Revision: D58010705

fbshipit-source-id: bfe6d0897044f5f448fbc9a4cd783c5a3449944c
  • Loading branch information
generatedunixname89002005279527 authored and facebook-github-bot committed Jun 4, 2024
1 parent 896b80f commit fb1270d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
from ax.storage import json_load, json_save

try:
# Marking this as a manual import to avoid autodeps complaints
# due to imports from non-existent file.
from ax.version import version as __version__ # @manual # pyre-ignore[21]
pass
except Exception: # pragma: no cover
__version__ = "Unknown"

Expand Down
3 changes: 1 addition & 2 deletions ax/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ax.core.generator_run import GeneratorRun
from ax.core.metric import Metric
from ax.core.objective import MultiObjective, Objective
from ax.core.observation import Observation, ObservationData, ObservationFeatures
from ax.core.observation import ObservationFeatures
from ax.core.optimization_config import (
MultiObjectiveOptimizationConfig,
OptimizationConfig,
Expand All @@ -41,7 +41,6 @@
from ax.core.runner import Runner
from ax.core.search_space import SearchSpace
from ax.core.trial import Trial
from ax.core.types import TParameterization


__all__ = [
Expand Down

0 comments on commit fb1270d

Please sign in to comment.