appease pylint

pull/1484/head
alpharush 2 years ago
parent 72459a90d4
commit 83f74f10c9
  1. 6
      slither/detectors/variables/var_read_using_this.py

@ -1,4 +1,5 @@
from typing import List
from slither.core.cfg.node import Node
from slither.core.declarations import Function, SolidityVariable
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification
from slither.slithir.operations.high_level_call import HighLevelCall
@ -44,8 +45,9 @@ contract C {
return results
def _detect_var_read_using_this(self, func: Function) -> List:
results = []
@staticmethod
def _detect_var_read_using_this(func: Function) -> List[Node]:
results: List[Node] = []
for node in func.nodes:
for ir in node.irs:
if isinstance(ir, HighLevelCall):

Loading…
Cancel
Save