ipython / ipython/traitlets

generate_config_file: Writing empty sets

Đang mở
#513 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
653
Fork
217
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
2

Mô tả

IMHO; empty sets should be written as `set([])` (not `set()`), since when you later add some values, it is easy to forget adding the `[]`. Yes, you can also use set literals, but then the existing `set()` does not nudge you into that direction.

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.