Rewrite a weird super call

This commit is contained in:
Dave Halter
2020-07-02 12:31:16 +02:00
parent 24a1bbb3ca
commit 546b970240

View File

@@ -418,7 +418,9 @@ class DictLiteralValue(_DictMixin, SequenceLiteralValue, _DictKeyMixin):
array_type = 'dict'
def __init__(self, inference_state, defining_context, atom):
super(SequenceLiteralValue, self).__init__(inference_state)
# Intentionally don't call the super class. This is definitely a sign
# that the architecture is bad and we should refactor.
Sequence.__init__(self, inference_state)
self._defining_context = defining_context
self.atom = atom