Code: Select all
class Position:
def __init__(self, x: int, y: int):
self.x = x
self.y = y
def __add__(self, other: Position) -> Position:
return Position(self.x + other.x, self.y + other.y)
Ich denke, dies ist tatsächlich ein Pycharm -Problem. Es verwendet tatsächlich die Informationen in seinen Warnungen und Code -Abschluss.>