FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(graphql): Fix kwargs unused · python-gitlab/python-gitlab@371a41f · GitHub

Repository navigation

Commit 371a41f

Browse files
committed
fix(graphql): Fix kwargs unused
1 parent 06e1988 commit 371a41f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎gitlab/client.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,17 @@ def __init__(
13171317
self._client_opts = self._get_client_opts()
13181318
self._fetch_schema_from_transport = fetch_schema_from_transport
13191319

1320+
#: Create a session object for requests
1321+
_backend: type[_backends.DefaultBackend] = kwargs.pop(
1322+
"backend", _backends.DefaultBackend
1323+
)
1324+
self._backend = _backend(**kwargs)
1325+
self.session = self._backend.client
1326+
1327+
self.per_page = per_page
1328+
self.pagination = pagination
1329+
self.order_by = order_by
1330+
13201331
def _get_client_opts(self) -> dict[str, Any]:
13211332
headers = {"User-Agent": self._user_agent}
13221333

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL