# Python typing analysis

**URL:** <https://community.sonarsource.com/t/python-typing-analysis/78402>\
**Category:** SonarQube Server / Community Build\
**Tags:** python, sonarqube\
**Created:** [December 5, 2022, 11:51am UTC](https://community.sonarsource.com/t/python-typing-analysis/78402 "2022-12-05T11:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iskyd](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/iskyd/32/39783_2.png) [@iskyd](https://community.sonarsource.com/u/iskyd)\
**Post date:** [December 5, 2022, 11:51am UTC](https://community.sonarsource.com/t/python-typing-analysis/78402/1 "2022-12-05T11:51:17Z")

</div>

Is there a way to perform typing analysis of a python codebase using SonarQube?  
I’ve found a [post](https://community.sonarsource.com/t/pythons-mypy-support-in-sonarqube/12790) of more than 3 years ago about mypy integration but with no updates.  
It would be good to get also static type checking using SonarQube.

Thanks.

---

<div class="post-metadata">

**Author:** ![Guillaume\_Dequenne](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/guillaume_dequenne/32/7472_2.png) [@Guillaume\_Dequenne](https://community.sonarsource.com/u/Guillaume_Dequenne)\
**Post date:** [December 20, 2022, 12:53pm UTC](https://community.sonarsource.com/t/python-typing-analysis/78402/4 "2022-12-20T12:53:14Z")

</div>

Hello,

Sorry for the late answer, and thank you for bringing this up, as I think it’s a quite important topic.

It is still not possible to import mypy reports to SonarQube directly. I created a [ticket](https://sonarsource.atlassian.net/browse/SONARPY-1233) for that, as I believe it makes a lot of sense, given that mypy is a staple in any development workflow that relies on typing.

That being said, as was mentioned in the thread you linked, we want the out-of-the-box experience when using our products to be as good as possible. Since this thread was made, we developed a type inference engine in our Python analyzer and implemented quite a few rules that relate to type checking.

If there is anything you think the Python analyzer doesn’t do properly, I’d love to have more details so that we can improve our engine.
