Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Mar 17, 2024
1 parent 86f3ce7 commit 8954196
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions copier/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@
"""

import sys
from os import PathLike
from pathlib import Path
from textwrap import dedent
from typing import TYPE_CHECKING, Any, Callable
from typing import Any, Callable

import yaml
from plumbum import cli, colors
Expand All @@ -61,9 +62,6 @@
from .tools import copier_version
from .types import AnyByStrDict, OptStr, StrSeq

if TYPE_CHECKING:
from os import PathLike


def _handle_exceptions(method: Callable[[], None]) -> int:
"""Handle keyboard interruption while running a method."""
Expand Down Expand Up @@ -107,7 +105,7 @@ class CopierApp(cli.Application): # type: ignore[misc]
class _Subcommand(cli.Application): # type: ignore[misc]
"""Base class for Copier subcommands."""

def __init__(self, executable: PathLike[str]) -> None:
def __init__(self, executable: "PathLike[str]") -> None:
self.data: AnyByStrDict = {}
super().__init__(executable)

Expand Down

0 comments on commit 8954196

Please sign in to comment.