Skip to content

Commit

Permalink
Use format specifiers instead of percent format
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Apr 29, 2024
1 parent a2ee924 commit 2d6e5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def schema(self):
return self._schema

def _nested_normalized_option(self, option_name: str) -> list[str]:
nested_field = "%s." % self.name
nested_field = f"{self.name}."
return [
field.split(nested_field, 1)[1]
for field in getattr(self.root, option_name, set())
Expand Down

0 comments on commit 2d6e5c2

Please sign in to comment.