Use new Python 3.12 f-string syntax
维护者通常 4 天内回复
@ashprit-x 已经在做这个了。
开始于 2024年7月5日。
评估
这个 Issue 还没有评估数据。
描述
Now that we have updated this project to use Python 3.12 (#124), all multi-line f-strings should be updated to use the new syntax.
For example:
my_var: str = (
f"""This is a {
random.choice("good", "amazing", "wonderful")
}. My next random number will be provided below in due course: {
random.choice(
999_999_999_999_999,
420,
10,
0
)
if random.randint(0, 101) == 69
else random.random()
}"""
)
Would be changed to:
my_var: str = (
f"This is a {random.choice("good", "amazing", "wonderful")}. "
"My next random number will be provided below in due course: "
f"{
random.choice(
999_999_999_999_999,
420,
10,
0
)
if random.randint(0, 101) == 69
else random.random()
}"
)
(I am aware that this example can be simplified on to a single line without the line-length being exceeded, however this is just an example. Use the shown changes to help when the changed lines do exceed the maximum allowed line-length.)
- 主要语言
- Python
- 星标
- 1
- 派生
- 11
- 平均合并
- 7 天 19 小时
- 30 天内合并 PR
- 6
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CSSUoB/TeX-Bot-Py-V2 的其他 Issue
-
dependencies good first issue question
难度 2/5 1-3 小时 新手友好度 66/100
CSSUoB/TeX-Bot-Py-V2#843 · 1 条评论 ·
维护者通常 4 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 70/100
CSSUoB/TeX-Bot-Py-V2#828 · 1 个 reaction ·
维护者通常 4 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 65/100
CSSUoB/TeX-Bot-Py-V2#563 ·
维护者通常 4 天内回复
-
dependencies deployment good first issue
难度 3/5 1-2 天 新手友好度 35/100
CSSUoB/TeX-Bot-Py-V2#815 ·
维护者通常 4 天内回复
-
Matplotlib 3.11 Error可能重新可做 @MattyTheHacker 于 117 天前认领,目前没有进行中的 PR。 未关闭
CSSUoB/TeX-Bot-Py-V2#796 · 已指派 1 人 ·
维护者通常 4 天内回复
查看 CSSUoB/TeX-Bot-Py-V2 的全部 Issue
相似的 Issue
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog check可能已有人在做 @ocelotl 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
open-telemetry/opentelemetry-python#5825 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cuga-project/cuga-agent#1020 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
microsoft/playwright#43640 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复