The closest is this (Observe that your casts of wrapper aren't important should you make self posonly), nonetheless it breaks typing for self.funct. if you do not need to have that attribute or are Okay with it staying https://allytech.net.in/courses/python-training-in-bangalore/