[DOCS](packages) StrEnum changelog entries name a migration that does not give `Class.MEMBER`

Aperta
#896 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@sethfitz ci sta già lavorando.

Dal 4/12/2026.

  • #897 di @sethfitz — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Review the six changelog.d/886.feature.md fragments under the named packages and compare their migration examples with the existing StrEnum behavior described in the issue. The work is done when none of those fragments recommends repr() or .name for producing the old Class.MEMBER text and the six package entries remain consistent.

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

Descrizione

Type

Task

Scope

Multi-theme or Platform

Skillset

engineering

Description

The changelog fragments that #887 added for the StrEnum change tell code that relied on the old Class.MEMBER text to use repr() or .name. Neither returns it:

from overture.schema.common.scoping.heading import Heading

repr(Heading.FORWARD)  # "<Heading.FORWARD: 'forward'>"
Heading.FORWARD.name  # 'FORWARD'

A reader who follows the advice gets a different string and finds out at run time. The text ships in the next release notes of six packages: overture-schema-common, -system, -theme-base, -theme-buildings, -theme-places and -theme-transportation, each in changelog.d/886.feature.md.

Change. Replace the advice in those six fragments with an expression that returns the old text:

f"{type(member).__name__}.{member.name}"  # 'Heading.FORWARD'

Acceptance. No fragment under packages/*/changelog.d/ recommends repr() or .name for the Class.MEMBER text.

Lingua principale
Python
Stelle
219
Fork
20
Merge medio
1g 21h
PR unite (30g)
37

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 OvertureMaps/schema

Tutte le issue di OvertureMaps/schema

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.