I want the IDE (pycharm) to know the type of an varliable
class phone:
def __init__(self,):
self.device = None
def connect(self,):
self.device = samsung_object()
Now the IDE don't know the functions/vars used for device. I want that in init time it will be a samsung object type.
self.connect()?self.connect()at the end of your__init__function or callnew_phone=phone().connect()when you instantiate thenew_phonevariable