Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add `__str` cast operator

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

まず既存の __int 演算子とそのテストを見つけ、API クエリ値と任意の Node.data フィールドがどのようにパースされるかを追跡します。対応する __str の動作を追加して、数字だけの値を文字列のまま保持できるようにし、そのようなテスト箇所が存在する場合は、クエリと Node.data を対象とした集中的なテストで検証します。

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

説明

In the same way that we have the __int operator to cast values passed in an API query to integers, we should have __str to cast values to strings (or not cast it to anything else). This is typically for cases where the value is only digits and would otherwise automatically be cast to an integer. It's likely to arise with the arbitrary data stored in Node.data where we can't infer the type of the fields on the API side.

主要言語
Python
スター
10
フォーク
21
平均マージ
22分
マージ済み PR(30日)
1

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

kernelci/kernelci-api のほかの issue

kernelci/kernelci-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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