Skip to content

Commit

Permalink
Reapply pep585_imports codemod
Browse files Browse the repository at this point in the history
Summary: Handles changes since D60976146. I would guess some of these are from diffs that were in flight while D60976146 was landed.

Reviewed By: Balandat

Differential Revision: D61274223
  • Loading branch information
esantorella authored and facebook-github-bot committed Aug 14, 2024
1 parent a61c362 commit d3ed78f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ax/service/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from enum import Enum
from logging import LoggerAdapter
from time import sleep
from typing import Any, Callable, cast, List, NamedTuple, Optional
from typing import Any, Callable, cast, NamedTuple, Optional

import ax.service.utils.early_stopping as early_stopping_utils
from ax.core.base_trial import BaseTrial, TrialStatus
Expand Down Expand Up @@ -1739,7 +1739,7 @@ def generate_candidates(
self,
num_trials: int = 1,
reduce_state_generator_runs: bool = False,
) -> List[BaseTrial]:
) -> list[BaseTrial]:
"""Fetch the latest data and generate new candidate trials.
Args:
Expand Down
3 changes: 2 additions & 1 deletion ax/storage/sqa_store/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
# pyre-strict

import os
from collections.abc import Sequence
from datetime import datetime

from logging import Logger
from typing import Any, Callable, cast, Optional, Sequence, Union
from typing import Any, Callable, cast, Optional, Union

from ax.analysis.analysis import AnalysisCard

Expand Down
3 changes: 1 addition & 2 deletions scripts/validate_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import os
import pkgutil
import re
from typing import Set


# Paths are relative to top-level Ax directory (which is passed into fxn below)
Expand All @@ -29,7 +28,7 @@
}


def parse_rst(rst_filename: str) -> Set[str]:
def parse_rst(rst_filename: str) -> set[str]:
"""Extract automodule directives from rst."""
ret = set()
with open(rst_filename, "r") as f:
Expand Down

0 comments on commit d3ed78f

Please sign in to comment.