mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
11 lines
276 B
Python
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 )
|