Skip to content

Commit 856864d

Browse files
committed
Fix repr for value
1 parent a00f113 commit 856864d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dvc/parsing/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ class Value:
4848
meta: Optional[Meta] = field(compare=False, default=None, repr=False)
4949

5050
def __repr__(self):
51-
return "'" + str(self.value) + "'"
51+
return f"'{self}'"
52+
53+
def __str__(self) -> str:
54+
return str(self.value)
5255

5356

5457
class Container:

0 commit comments

Comments
 (0)