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

请先登录再写评论。
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.
There is also a way for prior versions of python 3.7. To avoid the warning just provide the type as string.