[Developer Experience] Add typing support

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

まず、リンクされている mypy のドキュメントと関連する issue #356 を読みます。この issue にはファイル、テスト、エントリポイントが記載されていません。クライアント全体にわたるスコープと、Python 2.7 および古い Python 3 バージョンに対する互換性の方針を決定し、指定されたエディターおよびバージョンの制約で機能する型付けサポートを実装できたことを完了の定義とします。

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

説明

Source: Internal Type: Enhancement

Typing support improves editor intellisense and also the correctness of the code. We won't be able to support Python 3.5+'s typing syntax until we drop support for Python < 3.5, but we can still use mypy to add typing for older Python 3 versions and Python 2.7.

Here's an example Python 2.7/3 code which annotates the value parameter as a string. Both PyCharm and VS Code recognize the typing and recognize value is a string without any settings or third party extensions.

class C:
    def __init__(self, value):
        # type: (str) -> None
        self.value = value

See also: https://github.com/hazelcast/hazelcast-python-client/issues/356

主要言語
Python
スター
115
フォーク
78
平均マージ
2日 23時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

hazelcast/hazelcast-python-client のほかの issue

hazelcast/hazelcast-python-client の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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