(self, splitted: Splitted)
Wraps splitted in Call or Dict.
Wraps splitted in Call or Dict.
Wraps splitted in Call or Dict .
def _prepare_splitted(self, splitted: Splitted) \
            -> Iterable[Union[ast.Call, ast.Dict]]:
        """Wraps splitted in Call or Dict."""
        for group in splitted:
            if not isinstance(group, list):
                yield ast.Call(
                    func=ast.Name(id='dict'),
                    args=[group],
                    keywords=[])
            elif group:
                yield ast.Dict(keys=[key for key, _ in group],
                               values=[value for _, value in group])
def _prepare_splitted ( self , splitted : Splitted ) -> Iterable [ Union [ ast . Call , ast . Dict ] ] : for group in splitted : if not isinstance ( group , list ) : yield ast . Call ( func = ast . Name ( id = 'dict' ) , args = [ group ] , keywords = [ ] ) elif group : yield ast . Dict ( keys = [ key for key , _ in group ] , values = [ value for _ , value in group ] )