The closest is this (Be aware that the casts of wrapper are not necessary in case you make self posonly), but it really breaks typing for self.funct. if you do not want that attribute or are OK with it becoming perhaps https://easiestbookmarks.com/story18119173/what-does-python-training-btm-mean