From 8871916a20401f9d6a9ee541307fd2805ae3e603 Mon Sep 17 00:00:00 2001 From: Erinc <44445487+erinc-emre@users.noreply.github.com> Date: Sat, 18 Oct 2025 16:25:58 +0200 Subject: [PATCH] Fix __iadd__ return type --- exercise2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercise2.py b/exercise2.py index edaa5cc..85cdc40 100644 --- a/exercise2.py +++ b/exercise2.py @@ -1,6 +1,7 @@ from __future__ import annotations from math import isclose from exercise1 import Vector +#from typing import Self class Point2D: def __init__(self, x: float, y: float) -> None: @@ -14,7 +15,7 @@ def x(self) -> float: def y(self) -> float: return self._coordinates[1] - #def __iadd__(self, other: Vector) -> None: + #def __iadd__(self, other: Vector) -> Self: # self._coordinates += other # return self