Skip to content

Commit 86d0b24

Browse files
committed
fix(run): Fix typing-extensions dependency
1 parent 4f693f1 commit 86d0b24

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/libvcs/_internal/run.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from collections.abc import Iterable, Mapping, MutableMapping, Sequence
1515
from typing import IO, TYPE_CHECKING, Any, AnyStr, Callable, Optional, Protocol, Union
1616

17-
from typing_extensions import TypeAlias
18-
1917
from libvcs._internal.types import StrOrBytesPath
2018

2119
from .. import exc
@@ -37,6 +35,7 @@ def console_to_str(s: bytes) -> str:
3735

3836
if TYPE_CHECKING:
3937
_LoggerAdapter = logging.LoggerAdapter[logging.Logger]
38+
from typing_extensions import TypeAlias
4039
else:
4140
_LoggerAdapter = logging.LoggerAdapter
4241

@@ -87,14 +86,14 @@ def __call__(self, output: AnyStr, timestamp: datetime.datetime) -> None:
8786

8887

8988
if sys.platform == "win32":
90-
_ENV: TypeAlias = Mapping[str, str]
89+
_ENV: "TypeAlias" = Mapping[str, str]
9190
else:
92-
_ENV: TypeAlias = Union[
91+
_ENV: "TypeAlias" = Union[
9392
Mapping[bytes, StrOrBytesPath], Mapping[str, StrOrBytesPath]
9493
]
9594

9695
_CMD = Union[StrOrBytesPath, Sequence[StrOrBytesPath]]
97-
_FILE: TypeAlias = Optional[Union[int, IO[Any]]]
96+
_FILE: "TypeAlias" = Optional[Union[int, IO[Any]]]
9897

9998

10099
def run(

0 commit comments

Comments
 (0)