You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove pyre-fixme/pyre-ignore from ax/ small directories (#4981)
Summary:
Pull Request resolved: #4981
Remove pyre-fixme/pyre-ignore suppression comments from 17 files across
several directories: plot/, analysis/, generation_strategy/, benchmark/,
metrics/, global_stopping/ (both source and test files).
Key fixes:
- Widen `AxPlotConfig.__new__` data param to `dict[str, Any] | Figure`,
eliminating 14 pyre-fixme[6] suppressions across ax/plot/
- Use `none_throws()` for Optional unwrapping
- Use `assert_is_instance()` for type narrowing
- Add proper type annotations (`AnalysisCard`, `SklearnDataset`, `TParamValue`)
- Use `float()` wrapping for numpy scalar arithmetic
- Use `npt.NDArray` instead of bare `np.ndarray`
- Use `int()` for cardinality() return values
- Fix `tuple[int]` -> `tuple[int, int, int]` for RGB color tuples
- Annotate `DISCRETE_COLOR_SCALE` global
Reviewed By: dme65
Differential Revision: D95264987
fbshipit-source-id: 3eb128e5552913ac0bb7127f110079ccbc8fb08c
0 commit comments