ipython / ipython/ipython

Tab completion not working for class when it has property with typing.Literal annotated return value

オープン
#14,412 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る
tab-completion
主要言語
Python
スター
16.8k
フォーク
4.5k
平均マージ
1日 2時間
マージ済み PR(30日)
6

説明

Here is an example class:
```python
import typing
class A:
@property
def value(self) -> typing.Literal['a']:
return 'a'
def get(self) -> typing.Literal['a']:
return 'a'
a = A()
```
Now if I type `a.` in IPython console, nothing will show up. If I put the same code in Python console, the second Tab will display the two methods.

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

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

評価

この issue はまだ評価されていません。

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

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