Should `--disallow-subclassing-any` be renamed or aliased to match the other 'disallow any' flags?

Đang mở
#5,106 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@Michael0x2a đang làm issue này rồi.

Từ ngày 3/6/2018.

Đánh giá

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

Mô tả

feature topic-disallow-any topic-usability

Currently, we have 6 different flags that, when set, prohibit the use of 'Any' in various places. Five of those flags are written in the form --disallow-any-*. The sixth, --disallow-subclassing-any, is the odd one out. (It predates the other five by about a year.)

Would anybody mind if I added an alias for that flag named --disallow-any-subclassing or --disallow-any-subclass and fixed the documentation so it's grouped with the other five?

Ngôn ngữ chính
Python
Star
20.6k
Fork
3.3k
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
54

Hướng dẫn đóng góp

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python/mypy

Tất cả issue của python/mypy

Issue tương tự

Thêm issue về Python

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.