dry-python / dry-python/returns

flatten results of do-blocks before returning

Open
#1,312 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
4.4k
Forks
155
Avg merge
2h 27m
Merged PRs (30d)
22

Description

In order to enhance the flexibility and avoid workarounds, consider flattening the results of do-blocks before returning them. This way the user can decide inside the do-block if his result needs a `unit` operation or not.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.