1
0
forked from VimPlug/jedi

Start using generic managers, for #1413

This commit is contained in:
Dave Halter
2019-12-08 21:56:30 +01:00
parent 4fca7bd22d
commit 8213d183fb
7 changed files with 81 additions and 56 deletions

View File

@@ -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)