Replies: 3 comments 1 reply
-
Hello @cbusillo , I think currently we cannot get mypy to work well with Odoo without developing a mypy plugin for Odoo. The situation may get better in the future as Odoo is improved to work well with popular static type checkers for Python. |
Beta Was this translation helpful? Give feedback.
-
Too bad. Mypy is so helpful for things like missing returns and missing type hints on parameters etc. Are there any other static type checkers you have found to help with Odoo? BTW, your plugin is like magic. I truly love it. I'm not sure I would have figured out the nuances of Odoo without it. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information, keep up the good work. |
Beta Was this translation helpful? Give feedback.
-
Does anyone use Odoo-stubs with MyPy? I am finding that PyCharm just isn't strict enough. I love the way the PyCharm Odoo plugin works, but I can't seem to get mypy to work well with Odoo. Is there a good mypy.ini that will help? I have Odoo-stubs installed with pip install -e ., but I still get lots of issues, for example
Beta Was this translation helpful? Give feedback.
All reactions