Skip to content

Commit

Permalink
Import Self from typing/_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Dec 20, 2024
1 parent 1442c23 commit 2390082
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci_cd/utils/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
from ci_cd.exceptions import InputError, InputParserError, UnableToResolve

if TYPE_CHECKING: # pragma: no cover
import sys
from typing import Any, Dict, List

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

from packaging.requirements import Requirement
from typing_extensions import Literal

Expand Down

0 comments on commit 2390082

Please sign in to comment.