Specify accepted types for all documented parameters

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Start with the docstring of cfp.vect, which the issue uses as its example: scale should be numeric, stride an integer, ptype an enumerated set of choices, and key_show a Boolean. Then find the other documented parameters across the plotting functions and add their accepted types in the same docstring style. Done when every documented parameter states its type and the docs build without errors. The separate validation issue the author mentions is out of scope.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

docs enhancement

There is generally no indication of accepted type for the documented parameters in the function docstrings, e.g. for cfp.vect the scale kwarg expects a numeric value, stride expects an integer value, ptype has an enumerated set of possiblities and key_show should be Boolean, etc. As per good (and indeed expected) docstring practice these should be added so the user knows what type is valid.

I will put up a separate issue for validation of anticipated type, since this would also be good for robustness, but is a different thing.

Ngôn ngữ chính
Python
Star
21
Fork
11
Merge trung bình
2 giờ 59 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

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 NCAS-CMS/cf-plot

Tất cả issue của NCAS-CMS/cf-plot

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.