channable / channable/opsqueue

Add typing stubs (`.pyi` files) for PyO3-generated Python definitions

オープン
#101 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
96
フォーク
2
平均マージ
1時間 2分
マージ済み PR(30日)
2

説明

Even with https://github.com/channable/opsqueue/issues/8 resolved, type checkers will treat types that are exclusively defined via C bindings as `Any`. Typing stubs would fix this, but PyO3 currently does not generate them (https://github.com/PyO3/pyo3/issues/5137). Manually maintaining them would be annoying because it'd have to be kept in sync with the Rust definitions of the types, but it could still be valuable as a temporary solution.

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by locating the Rust definitions exposed through PyO3 and checking how the generated Python definitions are currently represented. Review PyO3 issue 5137 and the existing type-checking setup, then define which exported types and signatures the stubs must cover. Done means the stubs describe the relevant bindings without leaving those types as Any and are documented as maintainable alongside the Rust definitions.

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

評価

技術スタック
python, rust
領域
developer-experience
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
38/100

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

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