Skip to content

Commit b39afce

Browse files
committed
fix(ci): upgrade pytest-cov/coverage for Python 3.14 annotation coverage
coverage.py < 7.6.10 incorrectly reports class annotations as uncovered on Python 3.14 due to PEP 649 deferred evaluation (coveragepy#1908). Pin pytest-cov >= 6.0.0 on Python >= 3.9 to pull coverage >= 7.6.10.
1 parent dd34d8a commit b39afce

2 files changed

Lines changed: 261 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ dev = [
3838
"pre-commit",
3939
"mypy",
4040
"pytest",
41-
"pytest-cov",
41+
"pytest-cov >=6.0.0; python_version >='3.9'",
42+
"pytest-cov; python_version <'3.9'",
4243
"pytest-sugar >=1.0.0",
4344
"pytest-mock >=3.10.0",
4445
"pytest-benchmark >=4.0.0",

0 commit comments

Comments
 (0)