Skip to content

Commit dd395af

Browse files
committed
fix: Fix repr for Right and Left
1 parent 8fa0229 commit dd395af

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

oslash/either.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ def __eq__(self, other: object) -> bool:
121121
def __str__(self) -> str:
122122
return f"Right {self._value}"
123123

124-
def __repr__(self) -> str:
125-
return str(self)
126-
127124
def __repr__(self) -> str:
128125
return f"Right({self._value!r})"
129126

@@ -185,9 +182,6 @@ def __eq__(self, other: object) -> bool:
185182
def __str__(self) -> str:
186183
return f"Left: {self._error}"
187184

188-
def __repr__(self) -> str:
189-
return str(self)
190-
191185
def __repr__(self) -> str:
192186
return f"Left({self._error!r})"
193187

0 commit comments

Comments
 (0)