inspection stopped recognizing python builtins

Hi all

Something happened recently with my installation of Pycharm. I'm not sure if it was something I did or not though.

Whenever I write a new class in Python2 the editor highlights the class definition and says that object is not a valid reference. I mean:

 

class Something(object):

    pass

 

Pycharm says I have an error in my code and that "Unresolved reference for 'object'"

 

It also does nto recognize builtin functions like len()

How can I revert this back to normal?

 

1 comment
Comment actions Permalink

Same Issue, any ideas?

1

Please sign in to leave a comment.