Skip to content

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Oct 27, 2025

Change the argument type of the new constraints paramemter from str to Requirement | None. The constraint key is not written to the graph JSON if the field is None.

See: #813

@tiran tiran requested a review from dhellmann October 27, 2025 19:21
@tiran tiran requested a review from a team as a code owner October 27, 2025 19:21
@mergify mergify bot added the ci label Oct 27, 2025
"edges": [edge.to_dict() for edge in self.children],
}
if self.constraint:
dct["constraint"] = str(self.constraint)
Copy link
Member

Choose a reason for hiding this comment

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

I would rather we always include the field so that the output format is consistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, I changed the JSON to be either a string or nil for no requirement.

Change the argument type of the new constraints paramemter from `str` to
`Requirement | None`. The constraint field in the JSON is now either
a string or `nil`.

See: python-wheel-build#813
Signed-off-by: Christian Heimes <[email protected]>
@mergify mergify bot merged commit 5503c28 into python-wheel-build:main Oct 28, 2025
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants