Python GitLab library vs API direct calls

Let’s assume we want to list all the variables for a project:


In the latter case, since we chain our method calls, would this result in?

  • first a call to get the project
  • secondly, a call to get the variables

Or is the library smart enough to only call the last endpoint? Fetching the project first would be totally useless.