Skip to content

Commit 9e02582

Browse files
authored
Merge pull request #14 from hrosicka/style/format-python-code
style: format python code with black
2 parents 57680d3 + 75ce9ff commit 9e02582

4 files changed

Lines changed: 130 additions & 106 deletions

File tree

Calculator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
class Calculator:
22
"""
3-
This class solves basic mathematical operations:
3+
This class solves basic mathematical operations:
44
addition, subtraction, multiplication, and division.
55
"""
6+
67
def __init__(self):
78
"""
89
This is the constructor for the Calculator class. It does not require any arguments.
@@ -65,6 +66,7 @@ def divide(self, a, b):
6566
if b == 0:
6667
raise ZeroDivisionError("Division by zero")
6768
return a / b
68-
69+
70+
6971
class CalculatorError(Exception):
70-
pass
72+
pass

0 commit comments

Comments
 (0)