(self, xs: List[Splitted])
Wrap starred in list call and list elts to just List.
Wrap starred in list call and list elts to just List.
Wrap starred in list call and list elts to just List .
def _prepare_lists(self, xs: List[Splitted]) -> Iterable[ListEntry]:
        """Wrap starred in list call and list elts to just List."""
        for x in xs:
            if isinstance(x, ast.Starred):
                yield ast.Call(
                    func=ast.Name(id='list'),
                    args=[x.value],
                    keywords=[])
            elif x:
                yield ast.List(elts=x)
def _prepare_lists ( self , xs : List [ Splitted ] ) -> Iterable [ ListEntry ] : for x in xs : if isinstance ( x , ast . Starred ) : yield ast . Call ( func = ast . Name ( id = 'list' ) , args = [ x . value ] , keywords = [ ] ) elif x : yield ast . List ( elts = x )