From e54a2aed989d86007881116393578496c90d4eb5 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Fri, 23 Oct 2026 15:05:58 -0400 Subject: [PATCH] Constrain pytest to remain compatible with pinned mypy --- CHANGELOG.md | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cfeef9..4258e50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed +* Constrain pytest below version 9 to remain compatible with the pinned mypy 0.930. * Remove Python 3.7 from CI and the default tox matrix. * [#198](https://github.com/python-qt-tools/PyQt5-stubs/pull/198) Corrected `QTableWidget.cellWidget()` to return an an optional `QWidget` instead of a list of `QWidgets`. * [#210](https://github.com/python-qt-tools/PyQt5-stubs/pull/210) Correct `QLineEdit.setValidator()` to accept `None` for removing the validator. diff --git a/setup.py b/setup.py index 579928e..27784aa 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def find_version(*file_paths): package_data={"PyQt5-stubs": ['*.pyi']}, packages=["PyQt5-stubs"], extras_require={ - "dev": ["mypy==0.930", "pytest", "pytest-xvfb"], + "dev": ["mypy==0.930", "pytest<9", "pytest-xvfb"], }, classifiers=[ "Development Status :: 5 - Production/Stable",