From 9b6a127d8c1e7ec097263e0163e347b1297092bc Mon Sep 17 00:00:00 2001 From: Alessandro Toldo Date: Mon, 24 Nov 2025 09:46:34 +0000 Subject: [PATCH 1/2] added empty line --- add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add.py b/add.py index 1e1aeec..d49ea24 100644 --- a/add.py +++ b/add.py @@ -2,4 +2,4 @@ def add(x: int, y: int) -> int: #if not isinstance(x,int) or not isinstance(y,int): # raise TypeError("Both arguments must be integers") """Returns the sum of two integers.""" - return x + y \ No newline at end of file + return x + y From 5a8b7233d8ffc38e8ff7c4c83fddfffbd8d8308c Mon Sep 17 00:00:00 2001 From: Alessandro Toldo Date: Mon, 24 Nov 2025 09:47:44 +0000 Subject: [PATCH 2/2] uncommented the raise TypeError --- add.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add.py b/add.py index d49ea24..256b9c3 100644 --- a/add.py +++ b/add.py @@ -1,5 +1,5 @@ def add(x: int, y: int) -> int: - #if not isinstance(x,int) or not isinstance(y,int): - # raise TypeError("Both arguments must be integers") + if not isinstance(x,int) or not isinstance(y,int): + raise TypeError("Both arguments must be integers") """Returns the sum of two integers.""" return x + y