Linux: module extension object: Add type annotation to the mod_mem_type property

This commit is contained in:
Gustavo Moreira
2024-10-30 19:50:13 +11:00
parent aecf8d4327
commit b098596687
@@ -32,7 +32,7 @@ vollog = logging.getLogger(__name__)
class module(generic.GenericIntelProcess):
@functools.cached_property
def mod_mem_type(self):
def mod_mem_type(self) -> Dict:
"""Return the mod_mem_type enum choices if available or an empty dict if not"""
# mod_mem_type and module_memory were added in kernel 6.4 which replaces
# module_layout for storing the information around core_layout etc.