Skip to content

Commit

Permalink
Refer the mypy-plugin extras in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukovgreen committed Apr 26, 2023
1 parent 7ecfd88 commit 7c03515
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ Smart, pythonic, ad-hoc, typed polymorphism for Python.
pip install classes
```

You also need to [configure](https://classes.readthedocs.io/en/latest/pages/container.html#type-safety)
You may also need to [configure](https://classes.readthedocs.io/en/latest/pages/container.html#type-safety)
`mypy` correctly and install our plugin:

```bash
pip install classes[mypy-plugin]
```
and

```ini
# In setup.cfg or mypy.ini:
[mypy]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.7"
typing_extensions = ">=3.10,<5.0"
mypy = { version = "^0.942", optional = true }
mypy = { version = "^1.2.0", optional = true }

[tool.poetry.dev-dependencies]
mypy = "^0.942"
Expand Down

0 comments on commit 7c03515

Please sign in to comment.