Skip to content

Commit 2801a41

Browse files
authored
change quotes (#3957)
1 parent a6fe4d4 commit 2801a41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/textual/css/_help_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def property_invalid_value_help_text(
150150
suggested_property_name = _contextualize_property_name(
151151
suggested_property_name, context
152152
)
153-
summary += f'. Did you mean "{suggested_property_name}"?'
153+
summary += f". Did you mean '{suggested_property_name}'?"
154154
return HelpText(summary)
155155

156156

@@ -324,7 +324,7 @@ def color_property_help_text(
324324
error.suggested_color if error and isinstance(error, ColorParseError) else None
325325
)
326326
if suggested_color:
327-
summary += f'. Did you mean "{suggested_color}"?'
327+
summary += f". Did you mean '{suggested_color}'?"
328328
return HelpText(
329329
summary=summary,
330330
bullets=[

tests/css/test_stylesheet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_did_you_mean_for_css_property_names(
203203
displayed_css_property_name = css_property_name.replace("_", "-")
204204
expected_summary = f"Invalid CSS property {displayed_css_property_name!r}"
205205
if expected_property_name_suggestion:
206-
expected_summary += f'. Did you mean "{expected_property_name_suggestion}"?'
206+
expected_summary += f". Did you mean '{expected_property_name_suggestion}'?"
207207
assert help_text.summary == expected_summary
208208

209209

@@ -243,6 +243,6 @@ def test_did_you_mean_for_color_names(
243243
)
244244

245245
if expected_color_suggestion is not None:
246-
expected_error_summary += f'. Did you mean "{expected_color_suggestion}"?'
246+
expected_error_summary += f". Did you mean '{expected_color_suggestion}'?"
247247

248248
assert help_text.summary == expected_error_summary

0 commit comments

Comments
 (0)