Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/test/node/fixtures/pseudodiff/07-indent1-one
13406 views
# pyright: strict
from pathlib import Path
from typing import Optional, Tuple

def install_powershell() -> Path:
    return Path('/powershell')

def install(
    shell: Optional[str] = None
) -> Tuple[str, Path]:
    if shell in {"powershell", None}:
        installed_path = install_powershell()
        return shell or "powershell", installed_path
    else:
        raise RuntimeError('Error!')