Skip to content

refactor ExcludeNewer to avoid accidentally exposing "local date" input #6820

@BurntSushi

Description

@BurntSushi

Basically, see: #6562 (review)

Right now, we are relying on ExcludeNewer in uv-resolver to have different implementations for Deserialize and FromStr in order to avoid allowing "local" dates in the [tool.uv] section. That seems very easy to accidental mess up, so we should either at least add a comment or change the code to make this harder to mess up.

Metadata

Metadata

Assignees

Labels

internalA refactor or improvement that is not user-facing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions