diff --git a/news/6321.bugfix.rst b/news/6321.bugfix.rst new file mode 100644 index 000000000..5075dbf8b --- /dev/null +++ b/news/6321.bugfix.rst @@ -0,0 +1 @@ +Fix repr(Shell) diff --git a/pipenv/shells.py b/pipenv/shells.py index 39baf1cd5..025ebaa98 100644 --- a/pipenv/shells.py +++ b/pipenv/shells.py @@ -82,7 +82,7 @@ def __init__(self, cmd): self.args = [] def __repr__(self): - return "{type(self).__name__}(cmd={self.cmd!r})" + return f"{type(self).__name__}(cmd={repr(self.cmd)}, args={repr(self.args)})" @contextlib.contextmanager def inject_path(self, venv):