The closest is this (Take note that the casts of wrapper aren't needed should you make self posonly), but it surely breaks typing for self.funct. If you don't need to have that attribute or are Okay with it currently https://allytech.net.in/courses/python-training-in-bangalore/