Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints incomplete for objects #665

Open
DaveSawyer opened this issue Jan 26, 2022 · 1 comment
Open

Type hints incomplete for objects #665

DaveSawyer opened this issue Jan 26, 2022 · 1 comment
Assignees
Labels
bug dontstale Mark issues not to be removed by stalebot

Comments

@DaveSawyer
Copy link
Contributor

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

@stale
Copy link

stale bot commented Dec 19, 2022

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

@stale stale bot added the stale label Dec 19, 2022
@mgrytsai mgrytsai added dontstale Mark issues not to be removed by stalebot and removed stale labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dontstale Mark issues not to be removed by stalebot
Projects
None yet
Development

No branches or pull requests

6 participants