diff --git a/pytorch_lightning/utilities/enums.py b/pytorch_lightning/utilities/enums.py index b3041a72cac3b..de2a0af661c2a 100644 --- a/pytorch_lightning/utilities/enums.py +++ b/pytorch_lightning/utilities/enums.py @@ -147,7 +147,7 @@ def is_interactive_compatible(self) -> bool: def deprecate(self) -> None: rank_zero_deprecation( "`DistributedType` Enum has been deprecated in v1.6 and will be removed in v1.8." - " Use the string value `{self.value!r}` instead." + f" Use the string value `{self.value!r}` instead." ) @@ -167,7 +167,7 @@ class DeviceType(_DeprecatedEnum): def deprecate(self) -> None: rank_zero_deprecation( "`DeviceType` Enum has been deprecated in v1.6 and will be removed in v1.8." - " Use the string value `{self.value!r}` instead." + f" Use the string value `{self.value!r}` instead." )