Skip to content

Conversation

@zware
Copy link
Member

@zware zware commented Nov 23, 2025

"deprecated-removed:: second argument cannot be `next`"
)
self.arguments[0] = version_deprecated, version_removed
self.arguments[0] = TerribleHashableDictHack(
Copy link
Member Author

Choose a reason for hiding this comment

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

Another option that avoids this hack is to check the order of {deprecated} and {removed} in the string, adjust the order of the tuple accordingly, and replace each placeholder with %s. That precludes the possibility of a translation needing to repeat either placeholder, but I don't know if that's a realistic need.

Note that the not-a-dict hack is necessary for this route due to dict not being hashable, raising a SphinxParallelError.

Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

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

Slightly simpler fix: #141865 (comment)

@hugovk
Copy link
Member

hugovk commented Nov 23, 2025

Closing in favour of #141882.

@hugovk hugovk closed this Nov 23, 2025
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.

3 participants