Compare enums by identity #3148
Unanswered
MicaelJarniac
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The doc does mention, though:
Warning
It is possible to reload modules – if a reloaded module contains enums, they will be recreated, and the new members may not compare identical/equal to the original members.
So I'm not entirely sure my suggestion won't break something if that's happening.
Some instances of comparisons by equality here:
httpx/httpx/_client.py
Line 203 in 7df47ce
httpx/httpx/_client.py
Line 913 in 7df47ce
This is a minor suggestion, and I understand if this is not wanted.
Beta Was this translation helpful? Give feedback.
All reactions