#NEWLINE# def get_coder( self , typehint ) : #NEWLINE# #INDENT# coder = self . _coders . get ( ( typehint . __class__ if isinstance ( typehint , typehints . TypeConstraint ) else typehint ) , None ) #NEWLINE# if ( isinstance ( typehint , typehints . TypeConstraint ) and ( coder is not None ) ) : #NEWLINE# #INDENT# return coder . from_type_hint ( typehint , self ) #NEWLINE# #UNINDENT# if ( coder is None ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_fallback_coder' ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'Coder registry has no fallback coder. This can happen if the fast_coders module could not be imported.' ) #NEWLINE# #UNINDENT# if isinstance ( typehint , typehints . IterableTypeConstraint ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( typehint is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self , typehints . TypeVariable ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . warning ( 'Using fallback coder for typehint: %r.' , typehint ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# coder = self . _fallback_coder #NEWLINE# #UNINDENT# return coder . from_type_hint ( typehint , self )