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

Refactoring - `get_duration`, `get_due`, `get_dtend` to be obsoleted

Aperta
#482 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@tobixen ci sta già lavorando.

Dal 25/5/2025.

  • #498 di @tobixen — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Locate the get_duration, get_due, and get_dtend methods in the caldav codebase, understand how they currently compute values, and refactor them to delegate to the corresponding icalendar properties while adding deprecation warnings. Run the existing test suite to confirm behavior remains correct after the changes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

deprecation

The duality between duration and dtend/due is IMO an annoying misfeature of the icalendar standard, so I made some helper methods for dealing with this - but it doesn't belong to the caldav library, it belongs to the icalendar library. Now we have the properties duration, dtend and dtstart available in the icalendar class. We should rewrite the current logic to wrap the icalendar properties and make some deprecation warnings.

Lingua principale
Python
Stelle
412
Fork
113
Merge medio
1g 2h
PR unite (30g)
43

Preparare l'ambiente

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 python-caldav/caldav

Tutte le issue di python-caldav/caldav

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.