Implement a class Calculator in the /app/ directory that provides basic arithmetic operations. The class should include the following functionalities:
Addition: Implement a method add(a: float, b: float) -> float that returns the sum of a and b.
Subtraction: Implement a method subtract(a: float, b: float) -> float that returns the result of subtracting b from a.
Multiplication: Implement a method multiply(a: float, b: float) -> float that returns the product of a and b.
Division: Implement a method divide(a: float, b: float) -> float that returns the result of dividing a by b. The method should handle division by zero by raising a ValueError with a message "Cannot divide by zero."
Requirements
Ensure that all methods are designed to handle floating-point numbers as inputs and outputs.
Include type annotations for all methods.
The implementation should be in a single file named calculator.py located in the /app/ directory.
The class should be structured appropriately to allow for extension and maintainability.
Make sure the implemented methods pass all the provided tests.