Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43ce185

Browse files
Correction for DISCOSNamespace.__format__
1 parent 6015f3b commit 43ce185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discos_client/namespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def __format__(self, spec: str) -> str:
600600
node, it delegates to `format(self._value, spec)`.
601601
:raise ValueError: If the format specifier is unknown or malformed.
602602
"""
603-
if self.__has_value__(self):
603+
if self.__has_value__(self) and not isinstance(self._value, tuple):
604604
with self._lock:
605605
return format(self._value, spec)
606606

0 commit comments

Comments
 (0)