From 3f87b507e8103d53fefc4ecb7291cd366066e4f7 Mon Sep 17 00:00:00 2001 From: code-review-doctor Date: Sun, 24 Apr 2022 00:02:06 +0100 Subject: [PATCH] Fix issue probably-meant-fstring found at https://codereview.doctor --- pytorch_lightning/utilities/enums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." )