PyCharm codechecker corrections are strange. Help understand

I have the following code in a .py file in PyCharm Python dev suite

__author__ = 'james.....'

class binaryNode() :

    def __init__(self,rootid):
      self.left = None
      self.right = None
      self.rootid = rootid

Open in new window

The code inspector thinks that rootid is incorrect in both places, and it makes no sense
It says "Typo in word 'rootid'  "

What have I done wrong?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Suhas .Senior QA ManagerCommented:
since rootid is new word and its not recongnized, you need to add it to dictionary of PyCharm.
Once you add it and do inspect code, it will say 'No Suspecious code found'.

so you have to add every new variable name to a PyCharm dictionary?

I personally don't use PyCharm, but if I recall correctly, one of my friends was using PyCharm and did not have this problem.

Is this perhaps a PyCharm setting, that can be disabled?
Not everybody who's using PyCharm might want to declare every new variable name / property name to PyCharm.
Suhas .Senior QA ManagerCommented:
For that we need to go to option

Code -> Configure current File analysis -> select the highlighting level to None.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.