add support for 'with-assignment' hints
This commit is contained in:
1 parent
3a1b2e7104
commit
641fb80773
4 files changed
+20
No files matched your search
@@ -526,6 +526,8 @@ class BaseNode(Base):
|
||||
try:
|
||||
if self.isinstance(ForStmt):
|
||||
whitespace = self.children[5].first_leaf().prefix
|
||||
elif self.isinstance(WithStmt):
|
||||
whitespace = self.children[3].first_leaf().prefix
|
||||
else:
|
||||
whitespace = self.last_leaf().get_next().prefix
|
||||
except AttributeError:
|
||||
|
||||
Reference in new issue
Block a user