We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef6a336 commit b574e7fCopy full SHA for b574e7f
docs/tutorial/tutorial.ipynb
@@ -44,6 +44,15 @@
44
"round(c2.radius, 3)"
45
]
46
},
47
+ {
48
+ "cell_type": "code",
49
+ "execution_count": null,
50
+ "metadata": {},
51
+ "outputs": [],
52
+ "source": [
53
+ "c2 # repr"
54
+ ]
55
+ },
56
{
57
"cell_type": "markdown",
58
"metadata": {},
src/mockup/mockup.py
@@ -92,3 +92,6 @@ def diameter(self):
92
@classmethod
93
def from_circumference(cls, circumference: Union[int, float]) -> Self:
94
return cls(circumference / (2 * cls.PI))
95
+
96
+ def __repr__(self):
97
+ return f"Circle({self.radius})"
0 commit comments