Skip to content

Commit a69b89a

Browse files
authored
Include prerelease in translated versions (#144)
Beta marks feature freeze marks prerelease. Fixes #92
1 parent 3da40df commit a69b89a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

completion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def branches_from_peps() -> list[str]:
1313
resp = urllib3.request('GET', 'https://peps.python.org/api/release-cycle.json')
1414
data = json.loads(resp.data)
1515
return [
16-
branch for branch in data if data[branch]['status'] in ('bugfix', 'security')
16+
branch
17+
for branch, metadata in data.items()
18+
if metadata['status'] in ('prerelease', 'bugfix', 'security')
1719
]
1820

1921

0 commit comments

Comments
 (0)