From 8acb79ab7bf0355f14e3a49ba22a435579669616 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 15:05:51 -0600 Subject: [PATCH] build(deps-dev): bump mypy from 1.20.0 to 2.1.0 (#3070) * build(deps-dev): bump mypy from 1.20.0 to 2.1.0 Bumps [mypy](https://github.com/python/mypy) from 1.20.0 to 2.1.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.20.0...v2.1.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix mypy lints --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Hunhoff --- pyproject.toml | 2 +- scripts/capa2yara.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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