[DOCS](packages) StrEnum changelog entries name a migration that does not give `Class.MEMBER`
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 38/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OvertureMaps/schema 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
OvertureMaps/schema#867 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
OvertureMaps/schema#694 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
OvertureMaps/schema#693 ·
维护者通常 1 天内回复
-
chore
难度 2/5 1-3 小时 新手友好度 82/100
OvertureMaps/schema#675 ·
维护者通常 1 天内回复
-
[BUG](ci) `main` fails `make check` on unused `type: ignore` comments可能已有人在做 @sethfitz 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
OvertureMaps/schema#899 ·
维护者通常 1 天内回复
查看 OvertureMaps/schema 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复