Make sure that sequence literals have the right generic classes, fixes #1416
This commit is contained in:
1 parent
e56d4fde98
commit
540a57766d
2 files changed
+31
-3
No files matched your search
@@ -206,9 +206,6 @@ class Sequence(LazyAttributeOverwrite, IterableMixin):
|
||||
def py__bool__(self):
|
||||
return None # We don't know the length, because of appends.
|
||||
|
||||
def py__class__(self):
|
||||
return compiled.builtin_from_name(self.inference_state, self.array_type)
|
||||
|
||||
@safe_property
|
||||
def parent(self):
|
||||
return self.inference_state.builtins_module
|
||||
|
||||
Reference in new issue
Block a user