Happify mypy

master
Salvo 'LtWorf' Tomaselli 2020-08-12 15:10:42 +07:00
parent 786a9d61f5
commit cabae01f7c
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 2 deletions

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