Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def font(self):
return Utility.lazy_get(self, '_font', Font.Font())
def _binary_operation(self, other, operation):
return Font( \
bold = operation(self.bold, other.bold), \
italic = operation(self.italic, other.italic), \
underline = operation(self.underline, other.underline), \
strikethrough = operation(self.strikethrough, other.strikethrough), \
family = operation(self.family, other.family, 'Calibri'), \
size = operation(self.size, other.size, 11), \
color = operation(self._color, other._color, None) \
)
def is_default(self):
return self._to_tuple() == Font()._to_tuple()