pull/1724/head
sidarth16 2 years ago
parent 181ee42e71
commit e48351339c
  1. 8
      slither/slither.py

@ -196,17 +196,17 @@ class Slither(SlitherCore): # pylint: disable=too-many-instance-attributes
instance = printer_class(self, logger_printer) instance = printer_class(self, logger_printer)
self._printers.append(instance) self._printers.append(instance)
def deregister_printer(self, printer_class: Type[AbstractPrinter]) -> None: def deregister_printer(self, printer_class: Type[AbstractPrinter]) -> None:
""" """
:param printer_class: Class inheriting from `AbstractPrinter`. :param printer_class: Class inheriting from `AbstractPrinter`.
""" """
for obj in self._printers: for obj in self._printers:
if type(obj) == printer_class : # pylint: disable=unidiomatic-typecheck if type(obj) == printer_class: # pylint: disable=unidiomatic-typecheck
self._printers.remove(obj) self._printers.remove(obj)
return return
def run_detectors(self) -> List[Dict]: def run_detectors(self) -> List[Dict]:
""" """
:return: List of registered detectors results. :return: List of registered detectors results.

Loading…
Cancel
Save