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

Commit

Permalink
Fix one more missed cast
Browse files Browse the repository at this point in the history
Not sure why I didn't see this one locally, maybe I needed a poetry update
  • Loading branch information
David Robertson committed Dec 12, 2022
1 parent be29fea commit fe4e205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts-dev/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import urllib.request
from os import path
from tempfile import TemporaryDirectory
from typing import Any, List, Optional, cast
from typing import Any, List, Optional

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

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

0 comments on commit fe4e205

Please sign in to comment.