Skip to content

Commit 77bcfde

Browse files
committed
Exclude mypy on PyPy to avoid librt build failure
mypy 1.19+ depends on librt which only has CPython wheels. When Poetry tries to install on PyPy, it falls back to building from source, which fails because librt uses CPython-specific C APIs.
1 parent 57607d5 commit 77bcfde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ setuptools = ">=70.0"
4949
pydantic-extra-types = "^2.10.5"
5050

5151
[tool.poetry.group.dev.dependencies]
52-
mypy = "^1.9.0"
52+
mypy = {version = "^1.9.0", markers = "platform_python_implementation == 'CPython'"}
5353
pytest = "^8.0.2"
5454
ipdb = "^0.13.9"
5555
black = "^24.2"

0 commit comments

Comments
 (0)