Skip to content

Commit cac161d

Browse files
Make __get_prompt_str less stricter
1 parent ba8633b commit cac161d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def get_arg(self, default: int = 1) -> int:
476476
return self.arg
477477

478478
@staticmethod
479-
def __get_prompt_str(prompt: str | int, default_prompt: str) -> str:
479+
def __get_prompt_str(prompt: object, default_prompt: str) -> str:
480480
"""
481481
Convert prompt object to string.
482482

0 commit comments

Comments
 (0)