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
This commit is contained in:
Devyansh Somvanshi
2026-02-24 21:27:46 +05:30
committed by GitHub
parent 54cc4ee7a3
commit e9b3311338
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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