From 1c3cca3c2125bae39e3a65c159dcb5ddc30b27a7 Mon Sep 17 00:00:00 2001 From: Andrey Lebedev Date: Tue, 12 Mar 2024 21:45:50 +0200 Subject: [PATCH 1/2] Support for mypy-1.9.0 --- CHANGELOG.md | 2 +- setup.cfg | 2 +- tests/samples/interface_implications.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa7d7ee..80cd1e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. ## 1.0.4 (unreleased) --------------------- -- Nothing changed yet. +- Support for mypy up to 1.9.x ## 1.0.3 (2023-12-26) diff --git a/setup.cfg b/setup.cfg index 32c9be4..7e87521 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,7 +28,7 @@ packages = zope-stubs package_dir = =src install_requires = - mypy>=1.0.0,<1.9.0 + mypy>=1.0.0,<1.10.0 zope.interface zope.schema include_package_data = True diff --git a/tests/samples/interface_implications.py b/tests/samples/interface_implications.py index 13367ba..aaf47b6 100644 --- a/tests/samples/interface_implications.py +++ b/tests/samples/interface_implications.py @@ -37,7 +37,7 @@ def main(obj: Optional[IBookmark]) -> None: interface_implications.py:21: note: Revealed type is "__main__.IBookmark" interface_implications.py:22: note: Revealed type is "Union[__main__.IBookmark, None]" interface_implications.py:26: note: Revealed type is "Type[__main__.IBookmark]" -interface_implications.py:28: note: Revealed type is "Union[Type[__main__.IBookmark], Type[None]]" +interface_implications.py:28: note: Revealed type is "Type[None]" interface_implications.py:29: note: Revealed type is "Union[Type[__main__.IBookmark], Type[None]]" """ From d4f64ab23201c17af1a9446c3bb0dcd5ee45a381 Mon Sep 17 00:00:00 2001 From: Andrey Lebedev Date: Tue, 12 Mar 2024 21:47:29 +0200 Subject: [PATCH 2/2] Remove support for python-3.7 Because mypy doesn't support it anymore. --- .github/workflows/test.yml | 2 +- CHANGELOG.md | 1 + setup.cfg | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ab1853..aac5dfb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 80cd1e5..c8ecf0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## 1.0.4 (unreleased) --------------------- +- Drop support for python-3.7 (follow mypy). - Support for mypy up to 1.9.x diff --git a/setup.cfg b/setup.cfg index 7e87521..edc802c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,6 @@ classifiers = Environment :: Console Intended Audience :: Developers Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10