dry-python / dry-python/returns

Try to provide default implementation for some interfaces

Đang mở
#616 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.