box / box/box-python-sdk

Type hints incomplete for objects

オープン
#665 コメント 1 件 リアクション 0 件 担当者 4 名 @mwwoda が担当を希望しています GitHub で見る
bug dontstale
主要言語
Python
スター
459
フォーク
223
平均マージ
8時間 57分
マージ済み PR(30日)
13

説明

### Description of the Issue
Type hints are present for methods, but type hints for objects (e.g. File) are missing the attributes. Running a tool like mypy or intellij with type hinting complains about attributes:
"Item" has no attribute "content_created_at" [attr-defined]

### Steps to Reproduce
pip install mypy
mypy test/unit/object/test_folder.py

or open test_folder.py in Intellij

### Error Message, Including Stack Trace
get errors like on line 286 assert new_file.description == file_description # File has no attribute 'description'

### Versions Used
Python SDK: 3.0.1, python 3.8.8

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

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

評価

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

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

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