Skip to content

Commit c9c7ea5

Browse files
code-review-doctorlexierule
authored andcommitted
Add missing f prefix to f-strings (#12869)
1 parent 55503b3 commit c9c7ea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_lightning/utilities/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def is_interactive_compatible(self) -> bool:
142142
def deprecate(self) -> None:
143143
rank_zero_deprecation(
144144
"`DistributedType` Enum has been deprecated in v1.6 and will be removed in v1.8."
145-
" Use the string value `{self.value!r}` instead."
145+
f" Use the string value `{self.value!r}` instead."
146146
)
147147

148148

@@ -162,7 +162,7 @@ class DeviceType(LightningEnum, metaclass=_OnAccessEnumMeta):
162162
def deprecate(self) -> None:
163163
rank_zero_deprecation(
164164
"`DeviceType` Enum has been deprecated in v1.6 and will be removed in v1.8."
165-
" Use the string value `{self.value!r}` instead."
165+
f" Use the string value `{self.value!r}` instead."
166166
)
167167

168168

0 commit comments

Comments
 (0)