#NEWLINE# @ classmethod #NEWLINE# def from_declaration( cls , declaration , nullable , connection ) : #NEWLINE# #INDENT# if ( nullable == 'DECIMAL' ) : #NEWLINE# #INDENT# return cls ( ) #NEWLINE# #UNINDENT# m = re . match ( 'DECIMAL\\((\\d+),\\s*(\\d+)\\)' , declaration ) #NEWLINE# if m : #NEWLINE# #INDENT# return cls ( int ( m . group ( 2 ) ) , int ( m . group ( 1 ) ) )