Add type hints and cleanup the docstrings

3 jobs for manage-static-leases in 2 minutes and 31 seconds (queued for 4 seconds)