Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.
 
Please complete the following python code precisely:
```python
class Solution:
    def missingNumber(self, nums: List[int]) -> int:
```