Improvements towards arrays / predefined names logic.
This commit is contained in:
1 parent
8fd08c86b7
commit
bad1f85f8f
14 files changed
+158
-167
No files matched your search
+1
-2
@@ -3,7 +3,6 @@ import sys
|
||||
import contextlib
|
||||
import functools
|
||||
import re
|
||||
from itertools import chain
|
||||
from ast import literal_eval
|
||||
|
||||
from jedi._compatibility import unicode, reraise
|
||||
@@ -184,7 +183,7 @@ def splitlines(string, keepends=False):
|
||||
|
||||
def unite(iterable):
|
||||
"""Turns a two dimensional array into a one dimensional."""
|
||||
return set(chain.from_iterable(iterable))
|
||||
return set(typ for types in iterable for typ in types)
|
||||
|
||||
|
||||
def to_list(func):
|
||||
|
||||
Reference in new issue
Block a user