The conversation between human and AI assistant.
[|Human|] Edit the given code by adding type annotations.
[|AI|] ```python
def add_numbers(a: float, b: float) -> float:
    return a + b
```
[|Human|] 
Edit the given code by adding type annotations.