abseil / abseil/abseil-py

Add a helper method declare multiple key flags.

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

Mô tả

Would it be possible to get a new function `declare_key_flags()` that behaves like `declare_key_flag()` but takes a Collection of flags instead of a single flag? It would make it easier to do something like this:

```python
# foo.py
FEATURE1_KEY_FLAGS = ('foo', 'bar')
FEATURE2_KEY_FLAGS = ('quux', 'baz')

# main.py
flags.declare_key_flags(foo.FEATURE1_KEY_FLAGS)
```

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.