Skip to content

Commit f4d0905

Browse files
committed
Add mypy-plugin extra dependency
use `pip install classes[mypy-plugin]` for installin additional dependencies required by the mypy-plugin. Add mypy-plugin extra dependency use `pip install classes[mypy-plugin]` for installing additional dependencies required by the mypy-plugin.
1 parent 9c97d7b commit f4d0905

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ You are also required to [configure](https://returns.readthedocs.io/en/latest/pa
4040
`mypy` correctly and install our plugin
4141
to fix [this existing issue](https://github.com/python/mypy/issues/3157):
4242

43+
```bash
44+
pip install classes[compatible-mypy]
45+
```
46+
and
47+
4348
```ini
4449
# In setup.cfg or mypy.ini:
4550
[mypy]

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ _ = "returns.contrib.hypothesis._entrypoint"
4848
python = "^3.7"
4949

5050
typing-extensions = ">=4.0,<5.0"
51+
mypy = { version = "^1.2", optional = true }
5152

5253
[tool.poetry.dev-dependencies]
5354
anyio = "^3.6"
@@ -82,6 +83,9 @@ doc8 = "^1.0"
8283
m2r2 = "^0.3"
8384
tomlkit = "^0.11"
8485

86+
[tool.poetry.extras]
87+
compatible-mypy = ["mypy"]
88+
8589

8690
[build-system]
8791
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)