[FIX] mypy: Configure to ignore missing Odoo imports globally
- Set ignore_missing_imports = True at global [mypy] level - Add explicit sections for odoo, odoo.*, and odoo.addons.* - Fixes pre-commit hook failures when mypy checks Odoo addon files - Resolves 'Cannot find implementation or library stub for module named odoo' errors This is a known issue with Odoo stubs not being fully compatible with mypy.
This commit is contained in:
parent
1779c42e9b
commit
3f822a28cf
1 changed files with 6 additions and 1 deletions
7
mypy.ini
7
mypy.ini
|
|
@ -5,8 +5,13 @@
|
|||
exclude = .*/migrations/.*
|
||||
|
||||
# Ignore missing imports from Odoo modules
|
||||
[mypy-odoo.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-odoo]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-odoo.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
[mypy-odoo.addons.*]
|
||||
ignore_missing_imports = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue