You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't quite get what this issue is about. Where do you get these errors from, from pylint? If I run pylint at command line using the example you provided I get no errors. Can you paste a screenshot with the exact output you're getting from VSCode?
Steps to reproduce
The result is from VSCode's pylint, writing a singleton with the assistance of
Enum
, is the recommended way of writing singleton pattern by PEP 484:This code correctly prints
Hello!
.Current behavior
test_class_instance
is of type “method 'value'”, and any call to it would result inE1101
.TestClassSingleton.test_object
is of typeTestClass
Expected behavior
TestClassSingleton.test_object
should be of classTestClassSingleton
.test_class_instance
should be of typeTestClass
.pylint --version output
The text was updated successfully, but these errors were encountered: