Convert a single line long string to multi-line to pass flake8

This commit is contained in:
Hanif Birgani 2021-09-10 15:46:25 +04:30
parent 0648ad9a93
commit b5414d4920

View file

@ -139,7 +139,8 @@ class Component(metaclass=SimplifiedInterfaceMediaDefiningClass):
if hasattr(self, "template"): if hasattr(self, "template"):
warnings.warn( warnings.warn(
f"{self.__class__.__name__}: `template` method is deprecated, set `template_name` or override `get_template_name` instead", f"{self.__class__.__name__}: `template` method is deprecated, \
set `template_name` or override `get_template_name` instead",
DeprecationWarning, DeprecationWarning,
) )
template_name = self.template(context) template_name = self.template(context)