line_profiler: Unresolved reference 'profile' in PyCharm and IntelliJ

97 Views Asked by At

When using line_profiler PyCharm throws Unresolved reference 'profile'.

How can I fix this?

2

There are 2 best solutions below

1
vanya On

This is only a warning by the IDE. You can run line_profiler like normal.

I don't know why the error appears, but as you are unlikely to keep line_profiler in production it shouldn't be a problem.

1
Antonina Belianskaya On

Could you please share a code example? In the context menu of the error, there is an option to ignore the issue.