Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion exercise2.py
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

Expand Down