From cabae01f7cdca8bde8f1cccda384b0b289973ec4 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 12 Aug 2020 15:10:42 +0200 Subject: [PATCH] Happify mypy --- relational/optimizations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relational/optimizations.py b/relational/optimizations.py index afeca55..7c00ee8 100644 --- a/relational/optimizations.py +++ b/relational/optimizations.py @@ -363,9 +363,9 @@ def swap_rename_select(n: parser.Node) -> Tuple[parser.Node, int]: for i in range(len(tokens)): splitted = tokens[i].split('.', 1) if splitted[0] in renames: - tokens[i] = renames[splitted[0]] + tokens[i] = LevelString(renames[splitted[0]]) if len(splitted) > 1: - tokens[i] += '.' + splitted[1] + tokens[i] = LevelString(tokens[i] + '.' + splitted[1]) child = Unary(SELECTION, ' '.join(tokens), n.child.child) return Unary(RENAME, n.child.prop, child), 1