how to disable "defined outside __init__" messages and the yellow, underline

hello, thanks, using “PyCharm 2023.3.3 (Professional Edition) Build #PY-233.13763.11"

i want to disable the warning about “Instance attribute … defined outside __init__ ”
how to disable yellow, wiggle underline of the text?

in this dialog box, there is no way to disable this.
please, how to disable this?

i did not find the answer looking at other forum posts
https://intellij-support.jetbrains.com/hc/en-us/search?utf8=%E2%9C%93&topic=200379535&query=defined+outside+__init__

 

for other issues, as shown here, there is an option to ‘ignore errors like this’

1
4 comments

Hi Asdffdsa6132 , you can disable it under File | Settings | Editor | Inspections. Does it help?

 

1

Or you can put this comment just before the specific statement or method to disable just that particular warning

 

# noinspection PyAttributeOutsideInit

1

Please sign in to leave a comment.