We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
__eq__
NOTE: it isn't clear whether there is much benefit to be gained from this approach but worth considering for added safety.
We use custom integer subclasses for the various indices types. A naive comparison of 1 == LocalIdx(1) will currently return True.
1 == LocalIdx(1)
True
If we want to be extra strict we should consider implementing __eq__ methods on these to differentiate them from 1) each other and 2) base int values.
int
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We use custom integer subclasses for the various indices types. A naive comparison of
1 == LocalIdx(1)
will currently returnTrue
.If we want to be extra strict we should consider implementing
__eq__
methods on these to differentiate them from 1) each other and 2) baseint
values.The text was updated successfully, but these errors were encountered: