Improve Type System for `pyperf`

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

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

@DebanKsahu がすでに取り組んでいます。

2026年9月5日 から。

  • #257 @DebanKsahu による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python

調査の方向性

まず pyperf の公開 API と issue に示されている例を調べ、次に pyrefly のような型チェッカーを使って報告された Unknown 型を再現します。対象となる公開パラメーターと戻り値が有用で正確な型を公開し、報告された自動補完と型チェックの問題が解決されれば完了です。

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

説明

Description

  • I recently came across pyperf because I want to do some benchmark testing of my changes which I did on an opensource project named ArchUnitPython which are generally to improve the performance of the library. Initially I wanted to start with inbuilt time module but later I found pyperf which kind of can produce good benchmark by handling things like cold start, number of process spawn, warm benchmark etc. But during coding I found that the type system of pyperf is not good as most of most return type and function parameter have Unknown type which kind of hindering my auto completion and understanding of that function or parameter.
  • Eg;
Image Image
  • Now it might be issue from pyrefly typechecker but the thing is the library on which I contributed and benchmarking my changes have no Unknown (Till now) same for other libraries like FastAPI, PydanticAI and some more.
  • Because of this I am planning to do contribution to the library and improve the type system of pyperf.

If any maintainer could guide me or discuses in this issue, then it would be helpful.

主要言語
Python
スター
967
フォーク
112
平均マージ
5日 8時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

psf/pyperf のほかの issue

psf/pyperf の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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