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

未关闭
#896 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@sethfitz 已经在做这个了。

开始于 2026年12月4日。

  • #897 来自 @sethfitz —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
38/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
documentation

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
219
派生
20
平均合并
1 天 21 小时
30 天内合并 PR
37

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OvertureMaps/schema 的其他 Issue

查看 OvertureMaps/schema 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。