Skip to content

Instantly share code, notes, and snippets.

@capttwinky
Created July 21, 2015 22:47
Show Gist options
  • Save capttwinky/445bf887406bf06df672 to your computer and use it in GitHub Desktop.
Save capttwinky/445bf887406bf06df672 to your computer and use it in GitHub Desktop.
class SignedObjectMixin(object):
@property
def signed(self):
if hasattr(self, '__sig__'):
return sign(self)
raise NotImplemented('no __sig__ found')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment