Skip to content

Commit 463ba81

Browse files
authored
Added __repr__ in BaseContainer class (#654)
* Added __repr__ in BaseContainer class * Changed __str__ to __repr__ in BaseContainer class * Added changes in CHANGELOG.md and changed docstring
1 parent 3a9ae69 commit 463ba81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ See [0Ver](https://0ver.org/).
8686
- Adds a lot of new typetests
8787
- Checks that now all math laws are checked for all types
8888
- Changes docs structure, adds new `Interfaces`, `HKT`, and `Methods` pages
89-
89+
- Changed str function in BaseContainer class to repr function.
9090

9191
## 0.14.0
9292

returns/primitives/container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self, inner_value) -> None:
2222
"""
2323
object.__setattr__(self, '_inner_value', inner_value) # noqa: WPS609
2424

25-
def __str__(self) -> str:
26-
"""Converts to string."""
25+
def __repr__(self) -> str:
26+
"""Used to display details of object."""
2727
return '<{0}: {1}>'.format(
2828
self.__class__.__qualname__.strip('_'),
2929
str(self._inner_value),

0 commit comments

Comments
 (0)