From a78ece9d9835a9187b3560fc602586fa603954fe Mon Sep 17 00:00:00 2001 From: Leszek Hanusz Date: Thu, 12 Dec 2024 01:49:50 +0100 Subject: [PATCH] Fix lint with 'make check' --- docs/code_examples/fastapi_async.py | 1 + gql/transport/appsync_auth.py | 2 +- gql/transport/requests.py | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/code_examples/fastapi_async.py b/docs/code_examples/fastapi_async.py index 80920252..3bedd187 100644 --- a/docs/code_examples/fastapi_async.py +++ b/docs/code_examples/fastapi_async.py @@ -10,6 +10,7 @@ from fastapi import FastAPI, HTTPException from fastapi.responses import HTMLResponse + from gql import Client, gql from gql.transport.aiohttp import AIOHTTPTransport diff --git a/gql/transport/appsync_auth.py b/gql/transport/appsync_auth.py index f2c34e62..1eb51b4e 100644 --- a/gql/transport/appsync_auth.py +++ b/gql/transport/appsync_auth.py @@ -91,7 +91,7 @@ class AppSyncIAMAuthentication(AppSyncAuthentication): .. note:: There is no need for you to use this class directly, you could instead - intantiate the :class:`gql.transport.appsync_websockets.AppSyncWebsocketsTransport` + intantiate :class:`gql.transport.appsync_websockets.AppSyncWebsocketsTransport` without an auth argument. During initialization, this class will use botocore to attempt to diff --git a/gql/transport/requests.py b/gql/transport/requests.py index 9d2718e0..bd370908 100644 --- a/gql/transport/requests.py +++ b/gql/transport/requests.py @@ -54,10 +54,10 @@ def __init__( """Initialize the transport with the given request parameters. :param url: The GraphQL server URL. - :param headers: Dictionary of HTTP Headers to send with :meth:`requests.Session.request` - (Default: None). - :param cookies: Dict or CookieJar object to send with :meth:`requests.Session.request` - (Default: None). + :param headers: Dictionary of HTTP Headers to send with + :meth:`requests.Session.request` (Default: None). + :param cookies: Dict or CookieJar object to send with + :meth:`requests.Session.request` (Default: None). :param auth: Auth tuple or callable to enable Basic/Digest/Custom HTTP Auth (Default: None). :param use_json: Send request body as JSON instead of form-urlencoded