Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed May 21, 2024
1 parent 85a9281 commit 3a5cf3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/packaged/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
import subprocess
import sys
import tempfile
from typing import cast, TYPE_CHECKING
from unittest import mock

import yen.github
from yaspin import yaspin

if TYPE_CHECKING:
from yaspin.core import Yaspin

MAKESELF_PATH = os.path.join(os.path.dirname(__file__), "makeself.sh")
DEFAULT_PYTHON_VERSION = "3.12"
PACKAGED_PYTHON_FOLDER_NAME = ".packaged_python"
Expand Down Expand Up @@ -73,7 +77,7 @@ def create_package(
# Run the build command in the source directory, while making sure
# that `python` and related binaries point to the installed python
if quiet:
spinner = mock.Mock()
spinner = cast("Yaspin", mock.Mock())
else:
spinner = yaspin(text="Running the build command...")

Expand Down

0 comments on commit 3a5cf3a

Please sign in to comment.