Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Add annotations so getTarget() has autocomplete

Leo Trubachc051c8fc3078
diff --git a/spiderfoot/plugin.py b/spiderfoot/plugin.py
index 43acdc5a..4994292d 100644
--- a/spiderfoot/plugin.py
+++ b/spiderfoot/plugin.py
@@ -1,5 +1,7 @@
import logging
+from spiderfoot import SpiderFootTarget
+
class SpiderFootPlugin():
"""SpiderFootPlugin module object
@@ -140,7 +142,7 @@ class SpiderFootPlugin():
return self.__scanId__
- def getTarget(self):
+ def getTarget(self) -> SpiderFootTarget:
"""Gets the current target this module is acting against.
Returns: