fix: linter errors over operators.py [no ci]

This commit is contained in:
Alec.Schmidt
2025-03-18 10:12:30 +01:00
parent 3d6abfa9bc
commit 83d70c4fc5

View File

@@ -23,17 +23,17 @@ __email__ = "michael.maeder@hefr.ch"
# file containing the operations for the calculator # file containing the operations for the calculator
# addition: returns x+y # addition: returns x+y
def addition(x, y): def addition(x, y):
return x+y return x+y
# subtraction: returns x-y # subtraction: returns x-y
def subtraction(x, y): def subtraction(x, y):
return x-y return x-y
# multiplication: returns x*y # multiplication: returns x*y
def multiplication(x, y): def multiplication(x, y):
return x*y return x*y
@@ -42,6 +42,6 @@ def multiplication(x, y):
# returns None if the divisor is zero # returns None if the divisor is zero
# the result might be of float type # the result might be of float type
def division(x, y): def division(x, y):
if y==0: if y == 0:
return None return None
return x/y return x/y