File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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."""
You can’t perform that action at this time.
0 commit comments