[flake8-gettext] Swap format- and printf-in-get-text-func-call examples (INT002, INT003) (#16769)

Summary
--
Fixes #16735. I also checked `INT001`, and it correctly has an f-string
example.

Test Plan
--
None
This commit is contained in:
Brent Westbrook 2025-03-17 10:37:38 -04:00 committed by GitHub
parent 23ccb52fa6
commit b2e0ae6416
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ use crate::checkers::ast::Checker;
/// from gettext import gettext as _
///
/// name = "Maria"
/// _("Hello, %s!" % name) # Looks for "Hello, Maria!".
/// _("Hello, {}!".format(name)) # Looks for "Hello, Maria!".
/// ```
///
/// Use instead:

View file

@ -26,7 +26,7 @@ use ruff_text_size::Ranged;
/// from gettext import gettext as _
///
/// name = "Maria"
/// _("Hello, {}!".format(name)) # Looks for "Hello, Maria!".
/// _("Hello, %s!" % name) # Looks for "Hello, Maria!".
/// ```
///
/// Use instead: