python / python/typeshed

Abstract pexpect.SpawnBase has no send/sendline/write/writelines stubs

オープン 初心者向け
#11,914 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

主要言語
Python
スター
5.1k
フォーク
2.1k
平均マージ
1日 19時間
マージ済み PR(30日)
82

説明

The actual implementation of pexpect.SpawnBase does not contain these functions but it is an abstract class and all children have these write methods.

Since almost all interesting pexpect code does some form of writing it is impractical to use SpawnBase as an annotation. The only viable solution seem to be annotating with PopenSpawn or maybe an union if you actually want to be generic?

Perhaps it would be acceptable to add these stubs to SpawnBase despite what is written in the implementation.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

typeshed 内の SpawnBase スタブを見つけ、send、sendline、write、writelines を定義している子スタブと比較します。関連する typing テストを確認するか、リポジトリの型チェックテストを実行して、SpawnBase のアノテーションが既存の実装を壊すことなくこれらのメソッドを公開していることを確認します。

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

評価

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

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

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