Specify accepted types for all documented parameters

オープン
#148 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
21
フォーク
11
平均マージ
2時間 59分
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NCAS-CMS/cf-plot のほかの issue

NCAS-CMS/cf-plot の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。