forked from VimPlug/jedi
Start using generic managers, for #1413
This commit is contained in:
@@ -21,6 +21,12 @@ def to_list(func):
|
||||
return wrapper
|
||||
|
||||
|
||||
def to_tuple(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
return tuple(func(*args, **kwargs))
|
||||
return wrapper
|
||||
|
||||
|
||||
def unite(iterable):
|
||||
"""Turns a two dimensional array into a one dimensional."""
|
||||
return set(typ for types in iterable for typ in types)
|
||||
|
||||
Reference in New Issue
Block a user