Skip to content

Commit

Permalink
tagging: import NotRequired from typing_extensions
Browse files Browse the repository at this point in the history
NotRequired is not available in python3.9.
  • Loading branch information
gotmax23 committed Nov 12, 2023
1 parent e7f55e6 commit 5c5d897
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/antsibull/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import re
import sys
from collections.abc import AsyncGenerator, Collection
from typing import NotRequired, TextIO, TypedDict
from typing import TYPE_CHECKING, TextIO, TypedDict

import asyncio_pool # type: ignore[import]
from antsibull_core import app_context
Expand All @@ -24,6 +24,9 @@

from antsibull.collection_meta import CollectionMetadata, CollectionsMetadata

if TYPE_CHECKING:
from typing_extensions import NotRequired

TAG_MATCHER: re.Pattern[str] = re.compile(r"^.*refs/tags/(.*)$")
TAG_VERSION_REGEX: re.Pattern[str] = re.compile(r"^v?(.*)$")
mlog = log.fields(mod=__name__)
Expand Down

0 comments on commit 5c5d897

Please sign in to comment.