add support for 'for-assignment' hints
This commit is contained in:
1 parent
8b28678d19
commit
3a1b2e7104
4 files changed
+37
-9
No files matched your search
+4
-1
@@ -524,7 +524,10 @@ class BaseNode(Base):
|
||||
after the node, including the #
|
||||
"""
|
||||
try:
|
||||
whitespace = self.last_leaf().get_next().prefix
|
||||
if self.isinstance(ForStmt):
|
||||
whitespace = self.children[5].first_leaf().prefix
|
||||
else:
|
||||
whitespace = self.last_leaf().get_next().prefix
|
||||
except AttributeError:
|
||||
return None
|
||||
except ValueError:
|
||||
|
||||
Reference in new issue
Block a user