Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit fe4e205

Browse files
author
David Robertson
committed
Fix one more missed cast
Not sure why I didn't see this one locally, maybe I needed a poetry update
1 parent be29fea commit fe4e205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts-dev/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import urllib.request
2828
from os import path
2929
from tempfile import TemporaryDirectory
30-
from typing import Any, List, Optional, cast
30+
from typing import Any, List, Optional
3131

3232
import attr
3333
import click
@@ -176,7 +176,7 @@ def _prepare() -> None:
176176
# Switch to the release branch.
177177
# Cast safety: parse() won't return a version.LegacyVersion from our
178178
# version string format.
179-
parsed_new_version = cast(version.Version, version.parse(new_version))
179+
parsed_new_version = version.parse(new_version)
180180

181181
# We assume for debian changelogs that we only do RCs or full releases.
182182
assert not parsed_new_version.is_devrelease

0 commit comments

Comments
 (0)