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

Add more type hints #4252

Merged
merged 5 commits into from
Jan 25, 2025
Merged

Add more type hints #4252

merged 5 commits into from
Jan 25, 2025

Conversation

tybug
Copy link
Member

@tybug tybug commented Jan 25, 2025

No description provided.

Comment on lines +1436 to +1439
cast(ConjectureResult, result).ir_nodes
for key in self.__data_cache
if (result := self.__data_cache[key]).status is Status.VALID
and startswith(result.ir_nodes, prefix)
and startswith(cast(ConjectureResult, result).ir_nodes, prefix)
Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can make this better with a is_valid(data: ConjectureResult | Overrun) -> TypeGuard[ConjectureResult] in the future

Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

onwards!

@tybug tybug merged commit 93fe3f7 into HypothesisWorks:master Jan 25, 2025
47 checks passed
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.

2 participants