Unresolved reference with Singleton

Completed

Is there a way to get rid of the warning "Unresolved reference 'DeviceManager' ..." for this kind of singleton pattern?

 

 

0
2 comments

I was using version 3.6.7 and changing to 3.7.3 solved the problem. I also had to remove PyCharms backward compatibility feature that would have shown the warning again, but PyCharm shows an info that guids to the parameter.

0

There is also a way for prior versions of python 3.7. To avoid the warning just provide the type as string.

0

Please sign in to leave a comment.