Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _binary_operation(self, other, operation):
return Alignment( \
horizontal = operation(self._horizontal, other._horizontal, 'left'), \
vertical = operation(self._vertical, other._vertical, 'bottom'), \
rotation = operation(self._rotation, other._rotation, 0), \
wrap_text = operation(self._wrap_text, other._wrap_text, False)
)
def alignment(self):
return Utility.lazy_get(self, '_alignment', Alignment.Alignment())