This is based on discussions in https://github.com/python-gitlab/python-gitlab/pull/1486.
This is based on discussions in #1486.