From 2a595c35133ad888f5ec4d895f1b57daf6ac13ad Mon Sep 17 00:00:00 2001 From: Rehan Khwaja Date: Tue, 26 Oct 2021 16:42:23 -0700 Subject: [PATCH] Support python 3.11 --- .github/workflows/ci.yml | 4 ++-- pyproject.toml | 3 ++- src/listdiff/__init__.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50c7389..49f81e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] steps: - uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: poe lint - name: Tests run: | - if python --version | grep -q 'Python 3.10' ; then + if python --version | grep -q 'Python 3.11' ; then poe test fi - name: Codecov diff --git a/pyproject.toml b/pyproject.toml index 350978f..430e55b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,8 @@ classifiers = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10" + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" ] [tool.poetry.dependencies] diff --git a/src/listdiff/__init__.py b/src/listdiff/__init__.py index a05fd5c..31f4e59 100644 --- a/src/listdiff/__init__.py +++ b/src/listdiff/__init__.py @@ -1,6 +1,6 @@ """Diff 2 python lists using a given key""" -from collections.abc import Iterable, Iterator +from collections.abc import Iterable, Iterator # pylint: disable=no-name-in-module from logging import getLogger, NullHandler from typing import Any