forked from facebook/Ax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow int-valued noise_std in BenchmarkRunner (facebook#3439)
Summary: Pull Request resolved: facebook#3439 **Context:** Yuck! Python typing says an int is acceptable when annotations indicate the need for a float, but `isinstance(3, float)` is False. https://discuss.python.org/t/clarifying-the-float-int-complex-special-case/54018 That was a causing a failure in a function with an `isinstance` check even though there were no complaints from Pyre. **This PR:** `isinstance(x, float)` -> `isinstance(x, float | int)` Reviewed By: Balandat Differential Revision: D70392395 fbshipit-source-id: c69d6252dbed87e91d42c03c699c386d72daac4e
- Loading branch information
1 parent
26080b7
commit bae241c
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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