Remove pyre-fixme/pyre-ignore from ax/ small directories#4981
Closed
saitcakmak wants to merge 1 commit intofacebook:mainfrom
Closed
Remove pyre-fixme/pyre-ignore from ax/ small directories#4981saitcakmak wants to merge 1 commit intofacebook:mainfrom
saitcakmak wants to merge 1 commit intofacebook:mainfrom
Conversation
|
@saitcakmak has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95264987. |
Summary: 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
f5a371c to
85a753a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4981 +/- ##
==========================================
- Coverage 96.86% 96.82% -0.04%
==========================================
Files 597 597
Lines 64282 64288 +6
==========================================
- Hits 62267 62249 -18
- Misses 2015 2039 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This pull request has been merged in 00960e9. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Remove pyre-fixme/pyre-ignore suppression comments from 11 files across
several directories: plot/, analysis/, generation_strategy/, benchmark/,
metrics/, global_stopping/ (both source and test files).
Key fixes:
none_throws()for Optional unwrappingassert_is_instance()for type narrowingAnalysisCard,SklearnDataset,TParamValue)float()wrapping for numpy scalar arithmeticnpt.NDArrayinstead of barenp.ndarrayint()for cardinality() return valuestuple[int]->tuple[int, int, int]for RGB color tuplesDISCRETE_COLOR_SCALEglobalAxPlotConfig(data=fig, ...)callsDifferential Revision: D95264987