Skip to content

Commit

Permalink
Task 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronnie5562 committed Jul 22, 2023
1 parent 1c9a3b9 commit dc7fbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-classes/6-square.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def position(self):
@position.setter
def position(self, value):
if (isinstance(value, tuple) and len(value) == 2 and
all(isinstance(val, int) for val in value) and
all(val >= 0 for val in value)):
all(isinstance(val, int) for val in value) and
all(val >= 0 for val in value)):
self.__position = value
else:
raise TypeError("position must be a tuple of 2 positive integers")
Expand Down

0 comments on commit dc7fbd8

Please sign in to comment.