Skip to content

Commit efe1e1e

Browse files
authored
Merge pull request #1326 from gcmoreira/linux_pagecache_fix_typing
Linux: PageCache API: Fix typing
2 parents 6414c66 + cf94b07 commit efe1e1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

volatility3/framework/symbols/linux/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def _slot_to_nodep(self, slot) -> int:
615615

616616
return nodep
617617

618-
def _iter_node(self, nodep, height) -> int:
618+
def _iter_node(self, nodep, height) -> Iterator[int]:
619619
node = self.nodep_to_node(nodep)
620620
node_slots = node.slots
621621
for off in range(self.CHUNK_SIZE):
@@ -632,7 +632,7 @@ def _iter_node(self, nodep, height) -> int:
632632
for child_node in self._iter_node(nodep, height - 1):
633633
yield child_node
634634

635-
def get_entries(self, root: interfaces.objects.ObjectInterface) -> int:
635+
def get_entries(self, root: interfaces.objects.ObjectInterface) -> Iterator[int]:
636636
"""Walks the tree data structure
637637
638638
Args:
@@ -818,7 +818,7 @@ def __init__(
818818
self._page_cache = page_cache
819819
self._idstorage = IDStorage.choose_id_storage(context, kernel_module_name)
820820

821-
def get_cached_pages(self) -> interfaces.objects.ObjectInterface:
821+
def get_cached_pages(self) -> Iterator[interfaces.objects.ObjectInterface]:
822822
"""Returns all page cache contents
823823
824824
Yields:

0 commit comments

Comments
 (0)