returns
returns copied to clipboard
Make your functions return something meaningful, typed, and safe!
Bumps [attrs](https://github.com/python-attrs/attrs) from 21.4.0 to 22.1.0. Release notes Sourced from attrs's releases. 22.1.0 Highlights The main features of this release are: The departure of Python 2.7 (enjoy your retirement!), and...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.0.2 to 5.1.1. Release notes Sourced from sphinx's releases. v5.1.1 Changelog: https://www.sphinx-doc.org/en/master/changes.html v5.1.0 Changelog: https://www.sphinx-doc.org/en/master/changes.html Changelog Sourced from sphinx's changelog. Release 5.1.1 (released Jul 26, 2022) Bugs...
Bumps [mypy](https://github.com/python/mypy) from 0.950 to 0.971. Commits 1f08cf4 Update version to 0.971 61c0064 Add back workaround to avoid confusing mypy.types and types in pyinfo (#13176) d8d900c Update version to 0.971+dev...
# Bug report ## What's wrong Trying to compose a generic function that converts between different container types fails to type check correctly when using generics. Hopefully I am just...
# Bug report ## What's wrong I'm trying to match some exceptions using structural pattern matching after reading the documentation, which says that I can match by result stored inside...
# Bug report ## What's wrong ``` Traceback (most recent call last): File "mypy/checkexpr.py", line 3991, in accept File "mypy/nodes.py", line 1760, in accept File "mypy/checkexpr.py", line 305, in visit_call_expr...
The returns plugin for functools.partial is great as far as it goes. Could that be adapted to support functools.partialmethod, too? This feature could resolve these issues: python/mypy#8619 python/mypy#1484
# Bug report ## What's wrong It appears returns containers fail to load from serialized pickle form when the inner value is `None`. I wrote a quick test script: ```python...
The current example motivating the use of `Maybe` is somewhat misleading because it solves a made-up problem: Alleged original "python" code: ```python if user is not None: balance = user.get_balance()...
# Bug report ## What's wrong > Again, this is a **really** cool project ❤️ Consider the following code: ```py from enum import Enum, auto import math from typing import...