Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Type hints incomplete for objects #665

Copy link
Copy link
@DaveSawyer

Description

@DaveSawyer
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Labels

bugdontstaleMark issues not to be removed by stalebotMark issues not to be removed by stalebot

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.