mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-05 01:07:38 +02:00
use typing for the layer variable passed to _generator
This commit is contained in:
@@ -23,7 +23,7 @@ class Crashinfo(interfaces.plugins.PluginInterface):
|
||||
architectures = ["Intel32", "Intel64"]),
|
||||
]
|
||||
|
||||
def _generator(self, layer):
|
||||
def _generator(self, layer: crash.WindowsCrashDump32Layer):
|
||||
header = layer.get_header()
|
||||
uptime = datetime.timedelta(microseconds=int(header.SystemUpTime) / 10)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user