Skip to content

Commit 2859d7a

Browse files
committed
Linux: lsof plugin: Fix list_fds() return typing
1 parent bf19b9f commit 2859d7a

File tree

1 file changed

+2
-2
lines changed
  • volatility3/framework/plugins/linux

1 file changed

+2
-2
lines changed

volatility3/framework/plugins/linux/lsof.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55
import datetime
66
import dataclasses
7-
from typing import List, Callable, Tuple
7+
from typing import List, Callable, Tuple, Iterable
88

99
from volatility3.framework import renderers, interfaces, constants
1010
from volatility3.framework.configuration import requirements
@@ -140,7 +140,7 @@ def list_fds(
140140
context: interfaces.context.ContextInterface,
141141
vmlinux_module_name: str,
142142
filter_func: Callable[[int], bool] = lambda _: False,
143-
) -> FDInternal:
143+
) -> Iterable[FDInternal]:
144144
"""Enumerates open file descriptors in tasks
145145
146146
Args:

0 commit comments

Comments
 (0)