Skip to content

Commit 70309d8

Browse files
Add missing f prefix to f-strings (#12869)
1 parent 7eda0bf commit 70309d8

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
@@ -147,7 +147,7 @@ def is_interactive_compatible(self) -> bool:
147147
def deprecate(self) -> None:
148148
rank_zero_deprecation(
149149
"`DistributedType` Enum has been deprecated in v1.6 and will be removed in v1.8."
150-
" Use the string value `{self.value!r}` instead."
150+
f" Use the string value `{self.value!r}` instead."
151151
)
152152

153153

@@ -167,7 +167,7 @@ class DeviceType(_DeprecatedEnum):
167167
def deprecate(self) -> None:
168168
rank_zero_deprecation(
169169
"`DeviceType` Enum has been deprecated in v1.6 and will be removed in v1.8."
170-
" Use the string value `{self.value!r}` instead."
170+
f" Use the string value `{self.value!r}` instead."
171171
)
172172

173173

0 commit comments

Comments
 (0)