Skip to content

Commit 4859d91

Browse files
authored
Update nodes.py
1 parent 547a6d7 commit 4859d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/nodes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ class Node(Context):
176176
__slots__ = ()
177177

178178
def __str__(self) -> str:
179-
ans = self.accept(mypy.strconv.StrConv(options=Options()))
180-
if ans is None:
179+
a = self.accept(mypy.strconv.StrConv(options=Options()))
180+
if a is None:
181181
# Some visitors might have empty bodies and actually return `None`
182182
return repr(self) # type: ignore[unreachable]
183-
return ans
183+
return a
184184

185185
def str_with_options(self, options: Options) -> str:
186186
a = self.accept(mypy.strconv.StrConv(options=options))

0 commit comments

Comments
 (0)