-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow changing the Display
of Range
#221
Comments
Can we just add it to the report formatter? |
We didn’t make the internal representation of range public because it is easy to break guaranties if you have access to it. If I’m not mistaken though there is an iterator that gives lets you iterate over segments bounds. Could you use that to make a custom function to convert to a string? |
Isn't this exactly what #187 was intended to be used for? In your sample code |
Sorry, i missed the |
In python, versions and version specifiers are formatted in particular way (PEP 440) that's different from pubgrub's default. We want to use the
pubgrub::range::Range
type for correctness and performance, but we'd like to override itsDisplay
impl. This is currently not possible with the newtype pattern due tosegments
ofRange
being private.For reference, this is
Display
impl we want:The text was updated successfully, but these errors were encountered: