Skip to content

Conversation

@rsekman
Copy link
Contributor

@rsekman rsekman commented Jan 21, 2026

In Python 3.14 NotImplemented can no longer be used in boolean contexts. That is, not NotImplemented will raise. The classes utils.cliparser.Args, utils.cliparser.Char had __ne__ implemented as not __eq__, but could return NotImplemented from the latter, so they would raise in Python 3.14. The default implementation of __ne__ is sufficient:

For __ne__(), by default it delegates to __eq__() and inverts the result unless it is NotImplemented.

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.

1 participant