Skip to content

Commit 1c35f0b

Browse files
committed
ci: cap pathspec at <1.1 in pyproject.toml
pathspec 1.1.0 (released 2026-04-23) made PathSpec a generic class, which trips `Missing type arguments for generic type` when mypyc self-compiles `mypy/modulefinder.py`. Our test-requirements pins 1.0.0 already, but the `.pkg` build env that runs mypyc uses pyproject.toml constraints and grabs 1.1.0. Add an upper bound there too.
1 parent 6c591db commit 1c35f0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires = [
77
# the following is from mypy-requirements.txt/setup.py
88
"typing_extensions>=4.6.0",
99
"mypy_extensions>=1.0.0",
10-
"pathspec>=1.0.0",
10+
"pathspec>=1.0.0,<1.1",
1111
"tomli>=1.1.0; python_version<'3.11'",
1212
"librt>=0.8.0; platform_python_implementation != 'PyPy'",
1313
# the following is from build-requirements.txt
@@ -51,7 +51,7 @@ dependencies = [
5151
# When changing this, also update build-system.requires and mypy-requirements.txt
5252
"typing_extensions>=4.6.0",
5353
"mypy_extensions>=1.0.0",
54-
"pathspec>=1.0.0",
54+
"pathspec>=1.0.0,<1.1",
5555
"tomli>=1.1.0; python_version<'3.11'",
5656
"librt>=0.8.0; platform_python_implementation != 'PyPy'",
5757
]

0 commit comments

Comments
 (0)