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

fix: remove unnecessary assertion to any #1333

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Sep 16, 2024

Which problem is this PR solving?

  • in fix: assertion for ClusterSizer #1329 , we introduced the assertion to any as the intermediate step to check whether a Sampler is a ClusterSizer.
  • It turns out that this intermediate step is unnecessary.

Short description of the changes

  • remove assertion to any in SetClusterSize

@VinozzZ VinozzZ requested a review from a team as a code owner September 16, 2024 17:35
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't know how we convinced ourselves that this was necessary.

@VinozzZ VinozzZ merged commit 84103fc into main Sep 16, 2024
7 checks passed
@VinozzZ VinozzZ deleted the yingrong.remove_unecessary_hack branch September 16, 2024 18:03
TylerHelmuth pushed a commit that referenced this pull request Oct 16, 2024
## Which problem is this PR solving?

- in #1329 , we introduced the assertion to `any` as the intermediate
step to check whether a Sampler is a ClusterSizer.
- It turns out that this intermediate step is unnecessary.

## Short description of the changes

- remove assertion to `any` in `SetClusterSize`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants