Skip to content

Commit 53f2f5f

Browse files
Added lru_cache decorator to FormatToken.is_augassign for consistency with FormatToken.is_arithmetic_op
1 parent 82eefc8 commit 53f2f5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yapf/yapflib/format_token.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def is_assign(self):
333333
return subtypes.ASSIGN_OPERATOR in self.subtypes
334334

335335
@property
336+
@lru_cache()
336337
def is_augassign(self):
337338
return self.value in frozenset({
338339
'+=',

0 commit comments

Comments
 (0)