Add library stubs for mypy

8 jobs for parent_key-optional in 2 minutes and 25 seconds (queued for 2 seconds)