Task Description: Implement a Basic Calculator Functionality
You are required to implement a basic calculator with a class named Calculator in the /app/ directory. This calculator should support the following operations: addition, subtraction, multiplication, and division.
Requirements:
Class Structure:
Create a class named Calculator.
Methods:
Implement the following methods within the Calculator class:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the result of a minus b.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of a divided by b. If b is zero, raise a ValueError with the message "Cannot divide by zero".
Edge Cases:
Ensure that the division by zero raises the appropriate exception as mentioned above.
Documentation:
Include docstrings for each method explaining the method's purpose, parameters, and return values.
No External Dependencies:
The implementation should not rely on any external libraries; it should be self-contained.
Make sure the implemented functionality passes the provided test code that will likely be present in the corresponding test suite.