Type hints incomplete for objects

Open
#665 1 comment 0 reactions 4 assignees View on GitHub

@mwwoda is already working on this.

Since Jan 26, 2022.

Assessment

This issue has not been assessed yet.

Description

bug dontstale
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

Dominant language
Python
Stars
460
Forks
223
Avg merge
14h 18m
Merged PRs (30d)
21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from box/box-python-sdk

All issues in box/box-python-sdk

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.