From a9f97b9448979da81b810b545578409d7ddbe5a6 Mon Sep 17 00:00:00 2001 From: Marcos Del Sol Vives Date: Tue, 3 Dec 2024 16:23:20 +0100 Subject: [PATCH 1/2] Fix repr(Shell) --- pipenv/shells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/shells.py b/pipenv/shells.py index 70938a1f35..ea8c1e4d17 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): From 23fa645a20cdd5488d8da8b01218135441e15de7 Mon Sep 17 00:00:00 2001 From: Marcos Del Sol Vives Date: Thu, 5 Dec 2024 22:38:20 +0100 Subject: [PATCH 2/2] Add news file for #6321 --- news/6321.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/6321.bugfix.rst diff --git a/news/6321.bugfix.rst b/news/6321.bugfix.rst new file mode 100644 index 0000000000..5075dbf8b3 --- /dev/null +++ b/news/6321.bugfix.rst @@ -0,0 +1 @@ +Fix repr(Shell)