From e9b33113389df666bc98a2e027bb515ffa560611 Mon Sep 17 00:00:00 2001 From: Devyansh Somvanshi <144378426+devs6186@users.noreply.github.com> Date: Tue, 24 Feb 2026 21:27:46 +0530 Subject: [PATCH] binja: add mypy config for top-level binaryninja module (#2877) Allow mypy to skip missing 'binaryninja' (not just binaryninja.*) when the Binary Ninja API is not installed. Fixes #2399 --- .github/mypy/mypy.ini | 3 +++ CHANGELOG.md | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/mypy/mypy.ini b/.github/mypy/mypy.ini index 163731eb..4d513719 100644 --- a/.github/mypy/mypy.ini +++ b/.github/mypy/mypy.ini @@ -63,6 +63,9 @@ ignore_missing_imports = True [mypy-PyQt5.*] ignore_missing_imports = True +[mypy-binaryninja] +ignore_missing_imports = True + [mypy-binaryninja.*] ignore_missing_imports = True diff --git a/CHANGELOG.md b/CHANGELOG.md index 31690826..d4425ad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ - doc: document that default output shows top-level matches only; -v/-vv show nested matches @devs6186 #1410 - doc: fix typo in usage.md, add documentation links to README @devs6186 #2274 +- binja: add mypy config for top-level binaryninja module to fix mypy issues @devs6186 #2399 - ci: deprecate macos-13 runner and use Python v3.13 for testing @mike-hunhoff #2777 ### Raw diffs