From c61f3ec2ed71de2ddd116ded3a9545084609d0bd Mon Sep 17 00:00:00 2001 From: iBug Date: Fri, 7 Nov 2025 16:23:58 +0800 Subject: [PATCH 1/2] Add __repr__ to custom PS1 class --- python_files/pythonrc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index 63c52bc009da..bb9ad48f0853 100644 --- a/python_files/pythonrc.py +++ b/python_files/pythonrc.py @@ -75,6 +75,9 @@ def __str__(self): return result + def __repr__(self): + return "" + if sys.platform != "win32" and (not is_wsl): sys.ps1 = PS1() From ac5d8eaef395e5812d468427a4d694623b80e293 Mon Sep 17 00:00:00 2001 From: iBug Date: Tue, 11 Nov 2025 10:17:37 +0800 Subject: [PATCH 2/2] Commit suggested changes Co-authored-by: Anthony Kim <62267334+anthonykim1@users.noreply.github.com> --- python_files/pythonrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index bb9ad48f0853..3042ffb7a309 100644 --- a/python_files/pythonrc.py +++ b/python_files/pythonrc.py @@ -76,7 +76,7 @@ def __str__(self): return result def __repr__(self): - return "" + return "" if sys.platform != "win32" and (not is_wsl):