Skip to content

Replace checked_cast with pyre_extensions assert_is_instance#3229

Closed
eonofrey wants to merge 1 commit into
facebook:mainfrom
eonofrey:export-D67879879
Closed

Replace checked_cast with pyre_extensions assert_is_instance#3229
eonofrey wants to merge 1 commit into
facebook:mainfrom
eonofrey:export-D67879879

Conversation

@eonofrey
Copy link
Copy Markdown
Contributor

Summary:
Replace checked_cast with pyre_extensions assert_is_instance

Search for all use cases with "ax.utils.common.typeutils .* checked_cast" regex

Differential Revision: D67879879

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 13, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D67879879

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 13, 2025
…ebook#3229)

Summary:
Pull Request resolved: facebook#3229

Replace `checked_cast` with pyre_extensions `assert_is_instance`

Search for all use cases with "ax.utils.common.typeutils .* checked_cast" regex

Differential Revision: D67879879
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D67879879

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 13, 2025

Codecov Report

❌ Patch coverage is 94.73684% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.88%. Comparing base (d803236) to head (f5f121c).
⚠️ Report is 1605 commits behind head on main.

Files with missing lines Patch % Lines
ax/metrics/hartmann6.py 33.33% 2 Missing ⚠️
ax/metrics/sklearn.py 33.33% 2 Missing ⚠️
ax/metrics/branin.py 66.66% 1 Missing ⚠️
ax/metrics/branin_map.py 66.66% 1 Missing ⚠️
ax/modelbridge/factory.py 85.71% 1 Missing ⚠️
ax/models/torch/botorch_moo_defaults.py 80.00% 1 Missing ⚠️
ax/plot/pareto_frontier.py 75.00% 1 Missing ⚠️
ax/plot/pareto_utils.py 75.00% 1 Missing ⚠️
ax/utils/sensitivity/derivative_measures.py 75.00% 1 Missing ⚠️
ax/utils/testing/preference_stubs.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3229      +/-   ##
==========================================
- Coverage   95.88%   95.88%   -0.01%     
==========================================
  Files         513      513              
  Lines       51710    51660      -50     
==========================================
- Hits        49580    49532      -48     
+ Misses       2130     2128       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D67879879

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 15, 2025
…ebook#3229)

Summary:
Pull Request resolved: facebook#3229

Replace `checked_cast` with pyre_extensions `assert_is_instance`

Search for all use cases with "ax.utils.common.typeutils .* checked_cast" regex

Differential Revision: D67879879
…ebook#3229)

Summary:
Pull Request resolved: facebook#3229

Replace `checked_cast` with pyre_extensions `assert_is_instance`

Search for all use cases with "ax.utils.common.typeutils .* checked_cast" regex

Differential Revision: D67879879
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D67879879

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in ca93faa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants