Skip to content

Commit 9b33255

Browse files
committed
black
1 parent d6c2435 commit 9b33255

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

slither/slithir/operations/binary.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ def get_type(operation_type): # pylint: disable=too-many-branches
8989
raise SlithIRError("get_type: Unknown operation type {})".format(operation_type))
9090

9191
def can_be_checked_for_overflow(self):
92-
return self in [BinaryType.POWER, BinaryType.MULTIPLICATION, BinaryType.MODULO, BinaryType.ADDITION, BinaryType.SUBTRACTION, BinaryType.DIVISION]
92+
return self in [
93+
BinaryType.POWER,
94+
BinaryType.MULTIPLICATION,
95+
BinaryType.MODULO,
96+
BinaryType.ADDITION,
97+
BinaryType.SUBTRACTION,
98+
BinaryType.DIVISION,
99+
]
93100

94101
def __str__(self): # pylint: disable=too-many-branches
95102
if self == BinaryType.POWER:
@@ -171,7 +178,7 @@ def type(self):
171178
@property
172179
def type_str(self):
173180
if self.node.scope.is_checked and self._type.can_be_checked_for_overflow():
174-
return '(c)' + str(self._type)
181+
return "(c)" + str(self._type)
175182
return str(self._type)
176183

177184
def __str__(self):

slither/solc_parsing/declarations/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def _parse_statement(
10171017

10181018
return node
10191019

1020-
def _parse_block(self, block: Dict, node: NodeSolc, check_arithmetic:bool = False):
1020+
def _parse_block(self, block: Dict, node: NodeSolc, check_arithmetic: bool = False):
10211021
"""
10221022
Return:
10231023
Node

0 commit comments

Comments
 (0)