From d2db22c3103e514e123edf6269cf87f22a23e0a4 Mon Sep 17 00:00:00 2001 From: iMHLv2 Date: Tue, 1 Jun 2021 14:20:59 -0500 Subject: [PATCH] use typing for the layer variable passed to _generator --- volatility3/framework/plugins/windows/crashinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/plugins/windows/crashinfo.py b/volatility3/framework/plugins/windows/crashinfo.py index 47c18292f..cdcbfc920 100644 --- a/volatility3/framework/plugins/windows/crashinfo.py +++ b/volatility3/framework/plugins/windows/crashinfo.py @@ -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)