-
-
Notifications
You must be signed in to change notification settings - Fork 130
Implement Maybe monad and custom mypy plugin #25
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
Comments
Moreover it is possible to use |
We have to wait until python/typing#614 is resolved. |
Closed by accident. |
We can probably try to write custom mypy plugin to solve:
Let's evaluate how hard it is to do. |
Refs #88 |
It is also became clear to me that we should always return |
We can start working on |
Closed with cf36f26 |
Currently it is impossible to use this monad due to this bug in
typing
:Type will be:
Some[Union[int, None]]
, not
Union[Some[int], Nothing]
Related:
returns/returns/maybe.pyi
Lines 10 to 24 in edb8ae2
The text was updated successfully, but these errors were encountered: