summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-05-13 00:39:14 +0200
committerGitHub <noreply@github.com>2022-05-13 00:39:14 +0200
commitd616f2b08b8aae4ad835103e4ff7eb21a96cc2d4 (patch)
treef14658746d2370b1fe5ec06ce7cc7810c55774c9 /script
parent58bbe0f77a3cdd4e91d4af719208e324334a869f (diff)
downloadastroid-git-d616f2b08b8aae4ad835103e4ff7eb21a96cc2d4.tar.gz
Update typing for Python 3.7 (1) (#1555)
Diffstat (limited to 'script')
-rw-r--r--script/bump_changelog.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/bump_changelog.py b/script/bump_changelog.py
index 78e3bef6..e00cf783 100644
--- a/script/bump_changelog.py
+++ b/script/bump_changelog.py
@@ -6,12 +6,14 @@
This script permits to upgrade the changelog in astroid or pylint when releasing a version.
"""
# pylint: disable=logging-fstring-interpolation
+
+from __future__ import annotations
+
import argparse
import enum
import logging
from datetime import datetime
from pathlib import Path
-from typing import List
DEFAULT_CHANGELOG_PATH = Path("ChangeLog")
@@ -58,7 +60,7 @@ def get_next_version(version: str, version_type: VersionType) -> str:
return ".".join(new_version)
-def get_next_versions(version: str, version_type: VersionType) -> List[str]:
+def get_next_versions(version: str, version_type: VersionType) -> list[str]:
if version_type == VersionType.PATCH:
# "2.6.1" => ["2.6.2"]
return [get_next_version(version, VersionType.PATCH)]