Skip to content

Commit

Permalink
fix: wrong use of formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Mar 9, 2024
1 parent b89ad28 commit 3d23442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pint/facets/plain/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def get_name(self, name_or_alias: str, case_sensitive: bool | None = None) -> st
prefix, unit_name, _ = candidates[0]
if len(candidates) > 1:
logger.warning(
f"Parsing {name_or_alias} yield multiple results. Options are: {candidates:!r}"
f"Parsing {name_or_alias} yield multiple results. Options are: {candidates!r}"
)

if prefix:
Expand All @@ -689,7 +689,7 @@ def get_symbol(self, name_or_alias: str, case_sensitive: bool | None = None) ->
prefix, unit_name, _ = candidates[0]
if len(candidates) > 1:
logger.warning(
f"Parsing {name_or_alias} yield multiple results. Options are: {candidates:!r}"
f"Parsing {name_or_alias} yield multiple results. Options are: {candidates!r}"
)

return self._prefixes[prefix].symbol + self._units[unit_name].symbol
Expand Down

0 comments on commit 3d23442

Please sign in to comment.