Skip to content

Commit 1914ddf

Browse files
committed
Fix type declarations
1 parent 02c28db commit 1914ddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/basilisp/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def bootstrap(
5858
getattr(mod, fn_name)()
5959

6060

61-
def bootstrap_python(site_packages: Optional[str] = None) -> None:
61+
def bootstrap_python(site_packages: Optional[str] = None) -> str:
6262
"""Bootstrap a Python installation by installing a ``.pth`` file
6363
in ``site-packages`` directory (corresponding to "purelib" in
6464
:external:py:func:`sysconfig.get_paths`). Returns the path to the
@@ -75,10 +75,10 @@ def bootstrap_python(site_packages: Optional[str] = None) -> None:
7575
with open(pth, mode="w") as f:
7676
f.write("import basilisp.sitecustomize")
7777

78-
return pth
78+
return str(pth)
7979

8080

81-
def unbootstrap_python(site_packages: Optional[str] = None) -> str:
81+
def unbootstrap_python(site_packages: Optional[str] = None) -> Optional[str]:
8282
"""Remove the `basilispbootstrap.pth` file found in the Python site-packages
8383
directory (corresponding to "purelib" in :external:py:func:`sysconfig.get_paths`).
8484
Return the path of the removed file, if any."""

0 commit comments

Comments
 (0)