I'll make the image private actually ;)

This commit is contained in:
Lillian Violet 2024-02-29 14:34:06 +01:00
parent 30b8bebfcb
commit b0221ea514

View file

@ -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",