From 27c993b2db9ab15a8d888868184f4bbed5134e3e Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Fri, 28 Jan 2022 15:07:02 +0100 Subject: [PATCH 1/2] Add newlines to make pre-commit happy --- .github/workflows/deploy.yml | 2 +- .github/workflows/lint.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a9f74233..1ae7b4b6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,4 +23,4 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.1.0 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3fc35f9d..559326c4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,4 +19,4 @@ jobs: - name: Run lint 💅 run: tox env: - TOXENV: flake8 \ No newline at end of file + TOXENV: flake8 From 6fe8e6a1c0b26dd3d988d8aaab95c00e1cc2f72b Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Fri, 28 Jan 2022 15:12:38 +0100 Subject: [PATCH 2/2] Fix import from graphql_relay The module name was deprecated, but all imports should be made from the top level anyway. --- graphene_sqlalchemy/fields.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphene_sqlalchemy/fields.py b/graphene_sqlalchemy/fields.py index a22a3ae7..d7a83392 100644 --- a/graphene_sqlalchemy/fields.py +++ b/graphene_sqlalchemy/fields.py @@ -8,8 +8,7 @@ from graphene import NonNull from graphene.relay import Connection, ConnectionField from graphene.relay.connection import connection_adapter, page_info_adapter -from graphql_relay.connection.arrayconnection import \ - connection_from_array_slice +from graphql_relay import connection_from_array_slice from .batching import get_batch_resolver from .utils import EnumValue, get_query