Esempio n. 1
0
 def __ne__(self, other):
     return FlagArrayClause(
         self,
         normalize_string_input(other, general_error_msg_flag_array),
         include=False,
         session=self.session,
     )
Esempio n. 2
0
 def __ne__(self, other):
     return SelectorClause(
         self,
         normalize_string_input(other, general_error_msg_selector),
         include=False,
         session=self.session,
     )
Esempio n. 3
0
 def endswith(self, value, match_case=True, *, include=True, label=None):
     return TextClause(
         self,
         normalize_string_input(value, general_error_msg_text),
         match_type="Ends",
         match_case=match_case,
         include=include,
         label=label,
         session=self.session,
     )
Esempio n. 4
0
 def matches(self, value, match_case=True, *, include=True, label=None):
     normalized_input = normalize_string_input(value,
                                               general_error_msg_text)
     return TextClause(
         self,
         [f'="{v}"' for v in normalized_input],
         match_type="Ranges",
         match_case=match_case,
         include=include,
         label=label,
         session=self.session,
     )
Esempio n. 5
0
 def __eq__(self, other):
     return ArrayClause(
         self,
         normalize_string_input(other, general_error_msg_array),
         session=self.session,
     )