fix: add type

pull/1477/head
Richie 2 years ago
parent c522ef9c14
commit 2412f834f0
No known key found for this signature in database
GPG Key ID: 7ADF8AF5EC521D17
  1. 2
      slither/detectors/abstract_detector.py

@ -64,7 +64,7 @@ class AbstractDetector(metaclass=abc.ABCMeta):
# list of vulnerable solc versions as strings (e.g. ["0.4.25", "0.5.0"]) # list of vulnerable solc versions as strings (e.g. ["0.4.25", "0.5.0"])
# if this list is not empty then the detector will not run unless the solc version is on the list # if this list is not empty then the detector will not run unless the solc version is on the list
# an empty list means that the detector will run on any solc version # an empty list means that the detector will run on any solc version
VULNERABLE_SOLC_VERSIONS = [] VULNERABLE_SOLC_VERSIONS: List[str] = []
def __init__( def __init__(
self, compilation_unit: SlitherCompilationUnit, slither: "Slither", logger: Logger self, compilation_unit: SlitherCompilationUnit, slither: "Slither", logger: Logger

Loading…
Cancel
Save