dry-python / dry-python/returns
Try to provide default implementation for some interfaces
Đang mở
enhancement
- Ngôn ngữ chính
- Python
- Star
- 4.4k
- Fork
- 155
- Merge trung bình
- 2 giờ 27 phút
- Pull request đã merge (30 ngày)
- 22
Mô tả
For example, `.map` is just `return self.__class__(function(self._inner_value))` in many cases.
There are also other methods that can be possibly have defaults.
Or `.from_iterable` also is the same for every container.
But, we need to check that:
1. Typing works correctly
2. In case if method needs a non-default implementation, we can know it in advance
Related #598
Related #495
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.