Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __eq__(self, other) -> bool:
return (isinstance(other, Template)
and self._background == other._background
and self._line_spacing == other._line_spacing
and self._line_spacing_sigma == other._line_spacing_sigma
and self._font_size == other._font_size
and self._font_size_sigma == other._font_size_sigma
and self._font == other._font
and self._fill == other._fill
and self._left_margin == other._left_margin
and self._top_margin == other._top_margin
and self._right_margin == other._right_margin
and self._bottom_margin == other._bottom_margin
and self._word_spacing == other._word_spacing
and self._word_spacing_sigma == other._word_spacing_sigma
and self._end_chars == other._end_chars
and self._perturb_x_sigma == other._perturb_x_sigma
and self._perturb_y_sigma == other._perturb_y_sigma