box / box/box-python-sdk

Type hints incomplete for objects

未关闭
#665 1 条评论 0 个 reaction 已指派 4 人 已被 @mwwoda 认领 在 GitHub 查看
bug dontstale
主要语言
Python
星标
459
派生
223
平均合并
8 小时 57 分钟
30 天内合并 PR
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 摘要。