Open asqui opened 4 years ago
The fix for this is quite simple (see example here: https://github.com/BATS/opsgenie-python-sdk/commit/5fceef188fb4285b610c33a5646ea21206a3cee3) and it would be good if this could be fixed here so that I don't need to maintain a separate fork with the workaround for this issue...
Models such as
Responders
define the__eq__()
and__ne__()
methods appropriately, but not__hash__()
.From the Python documentation:
The practical consequence of this is that
set((Responders(type='team', name='foo'))) != set((Responders(type='team', name='foo')))
which is quite confusing!I suspect that this may be a bug coming from the Open Api Generator, but I am not familiar with the generator implementation and its use so am raising this bug here in the first instance.