Comment Comment by stop50 This sounds like an Protocol or abstract base classes. For typing there are TypeVars. parent stop50 1 year ago