diff --git a/src/poetry/utils/shell.py b/src/poetry/utils/shell.py index 872d083583c..f8c413afd81 100644 --- a/src/poetry/utils/shell.py +++ b/src/poetry/utils/shell.py @@ -114,10 +114,9 @@ def activate(self, env: VirtualEnv) -> int | None: c.sendline(f"emulate bash -c '. {shlex.quote(str(activate_path))}'") elif self._name == "xonsh": c.sendline(f"vox activate {shlex.quote(str(env.path))}") - - # if this is nu, we don't want to send the activation command to the - # command line since we already ran it via the shell's invocation elif self._name == "nu": + # If this is nu, we don't want to send the activation command to the + # command line since we already ran it via the shell's invocation. pass else: if self._name in ["fish"]: