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

Formatter's `is_decorated` property is temporarily disabled during `remove_format` breaking concurrent threads

Aperta
#423 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@ShipItAndPray ci sta già lavorando.

Dal 27/4/2026.

  • #529 di @ShipItAndPray — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start by reading the formatter's remove_format, format, and is_decorated behavior, then review the related Poetry issue at https://github.com/python-poetry/poetry/issues/9334. Determine whether Cleo is expected to support concurrent access and define done as either documenting the limitation for Poetry or making decorated-state handling consistent across concurrent format operations.

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

Descrizione

bug

See https://github.com/python-poetry/poetry/issues/9334

Poetry relies on the formatter's is_decorated property to be consistent when multiple threads query the property.

If one thread is in the middle of updating a section and has changed the formatter's is_decorated property via remove_format, a second thread may query it and get back an incorrect result.

If cleo is not thread-safe, the developers of poetry should be made aware, otherwise there may need to be changes to how remove_format and format work in relation to whether decorated output is supported in general vs decorated output is being emitted for the current format operation.

Lingua principale
Python
Stelle
1.4k
Fork
103
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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-poetry/cleo

Tutte le issue di python-poetry/cleo

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.