Files
PyGithub/github/ObjectCapacities/TypePolicies.py
T
2012-02-25 09:15:10 +00:00

11 lines
276 B
Python

class SimpleTypePolicy:
def create( self, obj, rawValue ):
return rawValue
class ObjectTypePolicy:
def __init__( self, type ):
self.__type = type
def create( self, obj, rawValue ):
return self.__type( obj._github, rawValue, lazy = True )