Skip to content

Commit

Permalink
use typing_extensions.TypedDict to satisfy pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 committed Jan 26, 2024
1 parent 7bfbbde commit 2b39cab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
3 changes: 2 additions & 1 deletion src/antsibull/announcements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 2b39cab

Please sign in to comment.