Happify mypy
This commit is contained in:
parent
786a9d61f5
commit
cabae01f7c
@ -363,9 +363,9 @@ def swap_rename_select(n: parser.Node) -> Tuple[parser.Node, int]:
|
|||||||
for i in range(len(tokens)):
|
for i in range(len(tokens)):
|
||||||
splitted = tokens[i].split('.', 1)
|
splitted = tokens[i].split('.', 1)
|
||||||
if splitted[0] in renames:
|
if splitted[0] in renames:
|
||||||
tokens[i] = renames[splitted[0]]
|
tokens[i] = LevelString(renames[splitted[0]])
|
||||||
if len(splitted) > 1:
|
if len(splitted) > 1:
|
||||||
tokens[i] += '.' + splitted[1]
|
tokens[i] = LevelString(tokens[i] + '.' + splitted[1])
|
||||||
|
|
||||||
child = Unary(SELECTION, ' '.join(tokens), n.child.child)
|
child = Unary(SELECTION, ' '.join(tokens), n.child.child)
|
||||||
return Unary(RENAME, n.child.prop, child), 1
|
return Unary(RENAME, n.child.prop, child), 1
|
||||||
|
Loading…
Reference in New Issue
Block a user