Skip to content

Commit

Permalink
Make type hints compatible with Python-3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinkens committed Apr 26, 2024
1 parent 88f49ea commit 5252843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_lock/pypi_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from pathlib import Path
from posixpath import expandvars
from typing import TYPE_CHECKING, Dict, List, Literal, Optional, Tuple
from typing import TYPE_CHECKING, Dict, List, Literal, Optional, Tuple, Union
from urllib.parse import urldefrag, urlsplit, urlunsplit

from clikit.api.io.flags import VERY_VERBOSE
Expand Down Expand Up @@ -406,7 +406,7 @@ def _get_url(link: Link) -> str:

class _HashChooser:
def __init__(
self, link: Link, dependency: PoetryDependency | PoetryDependencyWithHash
self, link: Link, dependency: Union[PoetryDependency, PoetryDependencyWithHash]
):
self.link = link
self.dependency = dependency
Expand Down

0 comments on commit 5252843

Please sign in to comment.