diff --git a/pyproject.toml b/pyproject.toml index 63a8fbe6..5eebe161 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -134,7 +134,7 @@ dev = [ "pytest-sugar==1.1.1", "pytest-instafail==0.5.0", "ruff==0.15.0", - "mypy==1.20.0", + "mypy==2.1.0", "mypy-protobuf==5.1.0", "PyGithub==2.9.0", "bump-my-version==1.3.0", diff --git a/scripts/capa2yara.py b/scripts/capa2yara.py index 44a5b170..b61ba419 100644 --- a/scripts/capa2yara.py +++ b/scripts/capa2yara.py @@ -82,7 +82,7 @@ unsupported = [ # - it would be technically possible to get the "basic blocks" working, but the rules contain mostly other non supported statements in there => not worth the effort. # collect all converted rules to be able to check if we have needed sub rules for match: -converted_rules = [] +converted_rules: list[str] = [] default_tags = "CAPA " @@ -91,7 +91,7 @@ min_rounds = 5 unsupported_capa_rules = Path("unsupported_capa_rules.yml").open("wb") unsupported_capa_rules_names = Path("unsupported_capa_rules.txt").open("wb") -unsupported_capa_rules_list = [] +unsupported_capa_rules_list: list[str] = [] condition_header = """ capa_pe_file and