Write a Python function `is_perfect_square(n: int) -> bool` that determines whether a given integer `n` is a perfect square. A number is a perfect square if it can be expressed as the square of an integer.
#### Example Usage:
```python [main.nopy]
print(is_perfect_square(16)) # Output: True
print(is_perfect_square(14)) # Output: False
print(is_perfect_square(1)) # Output: True
print(is_perfect_square(0)) # Output: True
```
#### Constraints:
- The input `n` will be a non-negative integer.
- The function should return `True` if `n` is a perfect square, otherwise `False`.