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

Tiny internal refactorings #2330

Merged
merged 4 commits into from Jan 26, 2020
Merged

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Jan 21, 2020

My experiments with making strategies hashable - to upgrade the de-duplication in one_of from avoiding unrolling recursive strategies forever to actual de-duplication - both concluded that while this was probably possible, it wasn't worth the effort.

This PR adds a comment to the source explaining what's happening and why, for the benefit of future investigators, along with some minor cleanups I made along the way which seemed worth keeping.

Closes #2327 (as wontfix).

@Zac-HD Zac-HD added the internals Stuff that only Hypothesis devs should ever see label Jan 21, 2020
@Zac-HD Zac-HD force-pushed the better-dedupe branch 10 times, most recently from 705fa94 to ae779f7 Compare January 23, 2020 09:19
@Zac-HD
Copy link
Member Author

Zac-HD commented Jan 25, 2020

Ping @HypothesisWorks/hypothesis-python-contributors for review?

Note that CI won't pass on anything until we merge at least the update for pip-tools.

@Zac-HD Zac-HD merged commit 90002b0 into HypothesisWorks:master Jan 26, 2020
@Zac-HD Zac-HD deleted the better-dedupe branch April 15, 2020 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internals Stuff that only Hypothesis devs should ever see
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strategies deduplication does not working for st.none as expected in OneOfStrategy.element_strategies
2 participants