#NEWLINE# @ util . dependencies ( 'sqlalchemy.sql.default_comparator' ) #NEWLINE# def _setup_getitem( self , default_comparator , index ) : #NEWLINE# #INDENT# if ( ( not isinstance ( index , util . string_types ) ) and isinstance ( index , collections . Sequence ) ) : #NEWLINE# #INDENT# index = default_comparator . _check_literal ( self . expr , operators . json_path_getitem_op , index , bindparam_type = JSON . JSONPathType ) #NEWLINE# operator = operators . json_path_getitem_op #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# index = default_comparator . _check_literal ( self . expr , operators . json_getitem_op , index , bindparam_type = JSON . JSONIndexType ) #NEWLINE# operator = operators . json_getitem_op #NEWLINE# #UNINDENT# return ( operator , index , operator . type )