0

When using line_profiler PyCharm throws Unresolved reference 'profile'.

How can I fix this?

vanya
  • 178
  • 8

2 Answers2

0

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.

vanya
  • 178
  • 8
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 08 '23 at 16:04
0

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

  • Will do! :) Thanks for the tip on how to ignore the issue. Won't it also potentially ignore relevant errors of the same kind then? – vanya Jun 09 '23 at 13:27