bump_version.py: `ast.Str` will be removed in Py314 so use `ast.Constant` (#5164)

This commit is contained in:
Christian Clauss 2024-11-07 07:54:12 +01:00 committed by GitHub
parent a5386c86b8
commit 0adc6d050a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import functools
import itertools
import pathlib
import re
from ast import Str
from ast import Constant
from collections import namedtuple
from collections.abc import Callable
@ -81,7 +81,7 @@ JS_TARGETS = [
@functools.lru_cache
def python_version_to_js_version(version: str) -> Str:
def python_version_to_js_version(version: str) -> Constant:
"""
Convert Python version name to JS version name
These two are different in prerelease or dev versions.