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

feat: widen allowed types for SnapshotID #2442

Merged
merged 5 commits into from
Dec 23, 2024

Conversation

bitwise-constructs
Copy link
Contributor

What I did

defines SnapshotID as Any

fixes: #2437
Fixes: APE-1866

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

antazoey
antazoey previously approved these changes Dec 23, 2024
Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

approve with 1 nit

Providers will expect and handle snapshot IDs differently. There shouldn't be a need to change
providers when using this feature, so there should not be confusion over this type in practical use
cases.
:meth:`~ape.managers.chain.ChainManager.snapshot` methods. Can be a ``str``, ``int``, ``bytes``,
Copy link
Member

Choose a reason for hiding this comment

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

for whatever reasons, we have been sticking to 1 sentence per line in our markdown, that is why you see such long lines. We can change this but probably should be all changed at once.

@antazoey antazoey enabled auto-merge (squash) December 23, 2024 19:26
@antazoey antazoey merged commit c5350e6 into ApeWorX:main Dec 23, 2024
18 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.

Change SnapshotID type to support tuple[bytes, int]
2 participants