Skip to content

Bump mypy to 1.6.1 #1710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ See [0Ver](https://0ver.org/).

## 1.0.0 WIP

### Misc
### Features

- *Breaking*: Remove `success_type` and `failure_type` fields from `IOResult`, `Maybe` and `Result` types

### Misc

- Support `mypy>=1.6.1,<1.7`


## 0.22.0

### Features
Expand Down
15 changes: 12 additions & 3 deletions docs/pages/contrib/mypy_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ and improve type-safety of things developers commonly use.
Installation
------------

You will need to install ``mypy`` separately.
It is not bundled with ``returns``.
``returns`` has ``[compatible-mypy]`` extra to install the supported version.

To install any ``mypy`` plugin add it
.. code:: bash

pip install 'returns[compatible-mypy]'

Or you can install ``mypy`` separately and check that version is supported.


Enabling our mypy plugin
------------------------

To install our ``mypy`` plugin add it
to the ``plugins`` section of the config file (``setup.cfg`` or ``mypy.ini``):

.. code:: ini
Expand Down
Loading