[Tracker] : Improve type annotation coverage

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

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

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

評価

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

調査の方向性

Issue にはファイル名もテストも記載されていません。まず Artist 階層と既存の型アノテーション定義を見つけ、次に要求された TypedDict の継承を Artist のプロパティに対応付けます。関連する Artist プロパティ階層が TypedDict でカバーされ、関連する型チェックが通れば完了です。

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

説明

topic: typing

This issue is to keep track of work on improving type hints in matplotlib

Main task : TypedDicts for Artist properties

Let's do this separately, because it's a dedicated and complex enough effort: Basically what we want is a Typed Dict for the artist properties. Artist properties are essentially the things you can set_[propname] on any object. These are in many cases the accepted and passed though by kwargs, and therefore artist property Typed Dicts make sense.

You'll want to create a Typed Dict hierarchy following the Artist hierarchy, i.e. TextProperties inheriting from ArtistProperties.

Originally posted by @timhoffm in https://github.com/matplotlib/matplotlib/pull/32139#discussion_r3690591174

for now this is our task, i'll be updating issue description as we proceed.

And another main reason for opening this is to have discussion, so please feel free to share your thoughts on this . Thank you 😊

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

matplotlib/matplotlib のほかの issue

matplotlib/matplotlib の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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