A python:S5806 is raised on the following. It claims that display is a builtin, but it isn’t and afaik it wasn’t in Python 2.7 either. Perhaps it means to say that display is being overwritten from the input argument?
we have sonar.python.version=3.10 in our sonar-project.properties.
Thank you for reporting this. I believe the reason for this is that display is actually a built-in in IPython and that the original implementation of the rule aims to avoid problems should you execute your code in this context.
I agree it doesn’t make sense to have this behavior by default, though. I created the following ticket to fix it.