I'll make the image private actually ;)
This commit is contained in:
parent
30b8bebfcb
commit
b0221ea514
|
@ -2,7 +2,7 @@
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 106,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
" self.url = url\n",
|
" self.url = url\n",
|
||||||
" self.width = width\n",
|
" self.width = width\n",
|
||||||
" self.height = height\n",
|
" self.height = height\n",
|
||||||
" self.image = get_cat_image(url)\n",
|
" self._image = get_cat_image(url)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def get_image(self) -> Image:\n",
|
" def get_image(self) -> Image:\n",
|
||||||
" \"\"\"Return the image of the cat object, cropped correctly if the width and height are changed.\n",
|
" \"\"\"Return the image of the cat object, cropped correctly if the width and height are changed.\n",
|
||||||
|
|
Loading…
Reference in a new issue