Skip to content

Commit

Permalink
more readable logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Apr 3, 2024
1 parent 7fa025e commit 39ce73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screenpy/speech_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def represent_prop(item: str | T | mock.Mock) -> str | mock.Mock:
return repr(item)

description = str(item)
if description[:1] == "<" and description[-1:] == ">":
if description.startswith("<") and description.endswith(">"):
return description

return f"<{item}>"

0 comments on commit 39ce73b

Please sign in to comment.