From 409bd1f915597430ce637c14f232e04a125de9a6 Mon Sep 17 00:00:00 2001 From: Wiktor <162815872+WiktorTheScriptor@users.noreply.github.com> Date: Mon, 24 Nov 2025 09:43:15 +0000 Subject: [PATCH] Uncomment type check for add function arguments --- add.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add.py b/add.py index 5c9b51c..7d58d92 100644 --- a/add.py +++ b/add.py @@ -1,5 +1,5 @@ def add(x: int, y: int) -> int: """Returns the sum of two integers.""" - #if not isinstance(x, int) or not isinstance(y,int): - # raise TypeError("Both arguments musst be integers") + if not isinstance(x, int) or not isinstance(y,int): + raise TypeError("Both arguments musst be integers") return x + y