Skip to content

Commit c61f3ec

Browse files
committed
Add __repr__ to custom PS1 class
1 parent 2ce21a0 commit c61f3ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python_files/pythonrc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def __str__(self):
7575

7676
return result
7777

78+
def __repr__(self):
79+
return "<Custom PS1 for VSCode Python Shell Integration>"
80+
7881

7982
if sys.platform != "win32" and (not is_wsl):
8083
sys.ps1 = PS1()

0 commit comments

Comments
 (0)