Relative Content

Tag Archive for pythonpycharm

Is it possible to make pycharm always ignore “unused import statement” errors, without disabling the unresolved references inspection as a whole?

I know that in pycharm you can get rid of “unused import statement” detection by deleting the import, or by putting # noqa after the import, or by putting # noinspection PyUnresolvedReferences before the import, however neither of these is what I want. I want the error to be ignored in all files project-wide without having to put an extra comment every time. I also don’t want to disable the Unused Reference inspection as whole, I only want this to apply to pycharm’s detection of unused imports. I don’t see any way to do this.

My python program now prints nothing and I don’t know why

So, I have a function that makes random integers and puts a operator between 2 of them so my friend can math. I wanted there to be multiple functions that could be called via a while loop after each interaction. I needed a way to actually select the functions and call them. I started with 1 function, and I put my code at the bottom of the function definition.

PyCharm Pro 2024.1.1 – Not stopping on all breakpoints

I am using Pycharm Professional Ver 2024.1.1, in Windows 11, and it is not stopping on breakpoints defined in called/sub functions when ‘stepping over’ with F8. To recreate this simply use the sample code created with a new PyCharm project: