diff --git a/pyproject.toml b/pyproject.toml index 2ef95030..a752cde3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,8 @@ dependencies = [ "twiggy", # We rely on deprecated features to maintain compat btw. pydantic v1 and v2 "pydantic < 3", + # pydantic already pulls it in, but we use it for TypedDict + "typing_extensions", # Used for sending announcements "pyperclip", ] diff --git a/src/antsibull/announcements.py b/src/antsibull/announcements.py index da05d3e5..e06347da 100644 --- a/src/antsibull/announcements.py +++ b/src/antsibull/announcements.py @@ -18,7 +18,7 @@ from functools import lru_cache, partial from pathlib import Path from textwrap import dedent -from typing import TYPE_CHECKING, TypedDict +from typing import TYPE_CHECKING from urllib.parse import quote as url_quote from urllib.parse import urlencode, urljoin @@ -29,6 +29,7 @@ from antsibull_core.dependency_files import DependencyFileData, DepsFile from jinja2 import Environment, PackageLoader, StrictUndefined, select_autoescape from packaging.version import Version as PypiVer +from typing_extensions import TypedDict from antsibull.constants import ANSIBLE_FORUM_URL, BUILD_DATA_URL from antsibull.pypi import PyPIClient, SdistAndWheelPair, UrlInfo