1
0
forked from VimPlug/jedi

Make sure that sequence literals have the right generic classes, fixes #1416

This commit is contained in:
Dave Halter
2019-12-20 01:30:44 +01:00
parent e56d4fde98
commit 540a57766d
2 changed files with 31 additions and 3 deletions
-3
View File
@@ -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