Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Type hints incomplete for objects

Aperta
#665 1 commento 0 reazioni 4 assegnatari Vedi su GitHub

@mwwoda ci sta già lavorando.

Dal 26/1/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Python
Stelle
460
Fork
223
Merge medio
14h 18m
PR unite (30g)
21

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di box/box-python-sdk

Tutte le issue di box/box-python-sdk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.