def shazam(): pass class MyClass: def shazzy(self): # should not be offered as completion variant pass