You are required to implement a simple calculator that can perform basic arithmetic operations: addition, subtraction, multiplication, and division. The calculator should be able to take two numbers and an operator as input and return the result of the operation.
Specific Requirements:
Create a new file named calculator.py in the /app/ directory.
Implement a function calculate(num1: float, num2: float, operator: str) -> float which:
Takes two numbers (num1 and num2) of type float.
Takes an operator as a string (operator) that can be one of the following: "+", "-", "*", "/".
Returns the result of the operation as a float.
The function should handle division by zero gracefully by returning None if operator is "/" and num2 is 0.
If the operator is not recognized, return None.
Include appropriate error handling and ensure that the function raises a ValueError if num1 or num2 are not of type float.
Ensure that your implementation passes the given tests that will check each of these functionalities appropriately.