Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete checked_cast and replace `checked_cast_(list|dict|to_tuple|optional) #3230

Closed
wants to merge 2 commits into from

Conversation

eonofrey
Copy link
Contributor

Summary:
Make the below replacements:

checked_cast_list -> assert_is_instance_list
checked_cast_dict -> assert_is_instance_dict
checked_cast_to_tuple -> assert_is_instance_of_tuple
checked_cast_optional -> assert_is_instance_optional
_argparse_type_encoder untouched

Differential Revision: D67993468

@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
Contributor

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 94.69697% with 14 lines in your changes missing coverage. Please review.

Project coverage is 95.87%. Comparing base (d803236) to head (674ccff).

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/modelbridge/modelbridge_utils.py 75.00% 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/common/typeutils.py 90.00% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3230      +/-   ##
==========================================
- Coverage   95.88%   95.87%   -0.01%     
==========================================
  Files         513      513              
  Lines       51710    51650      -60     
==========================================
- Hits        49580    49522      -58     
+ Misses       2130     2128       -2     

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

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 13, 2025
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 14, 2025
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
@facebook-github-bot
Copy link
Contributor

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

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 14, 2025
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
@facebook-github-bot
Copy link
Contributor

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

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 15, 2025
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
Summary: Replace `checked_cast` with pyre_extensions `assert_is_instance`

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

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

eonofrey added a commit to eonofrey/Ax that referenced this pull request Jan 15, 2025
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
…ptional) (facebook#3230)

Summary:
Pull Request resolved: facebook#3230

Make the below replacements:

`checked_cast_list` -> `assert_is_instance_list`
`checked_cast_dict` -> `assert_is_instance_dict`
`checked_cast_to_tuple` -> `assert_is_instance_of_tuple`
`checked_cast_optional` -> `assert_is_instance_optional`
`_argparse_type_encoder` untouched

Differential Revision: D67993468
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3c68bd3.

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