'How to get rid of red underlines in PyCharm? [duplicate]

I do not know how to get rid the red underlines in PyCharm IDE? How to resolve this tackle?

enter image description here



Solution 1:[1]

I suggest you to use it but you can disable it right of the top.

Click for image

Solution 2:[2]

You should take a look at https://www.jetbrains.com/help/pycharm/disabling-and-enabling-inspections.html,

Here is the part that may help you

Disable an inspection in the editor?

Place the caret at the highlighted line and press Alt+Enter (or click the Intention action icon to use the intention action).

Click the arrow next to the inspection you want to disable, and select Disable inspection.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mister13
Solution 2 endive1783