From 2c23bf7de28e8f77ed5c2bb45acd394c782764b8 Mon Sep 17 00:00:00 2001 From: mr-tz Date: Tue, 11 Jun 2024 12:09:08 +0000 Subject: [PATCH] add table variable annotation --- capa/features/extractors/dnfile/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/features/extractors/dnfile/helpers.py b/capa/features/extractors/dnfile/helpers.py index a85e855d34..d127dea7e0 100644 --- a/capa/features/extractors/dnfile/helpers.py +++ b/capa/features/extractors/dnfile/helpers.py @@ -321,7 +321,7 @@ def get_dotnet_table_row(pe: dnfile.dnPE, table_index: int, row_index: int) -> O return None try: - table = pe.net.mdtables.tables.get(table_index, []) + table: dnfile.base.ClrMetaDataTable = pe.net.mdtables.tables.get(table_index, []) return table[row_index - 1] except IndexError: return None