Unresolved reference with Singleton

已完成

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

 

 

0

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

请先登录再写评论。