diff --git a/pyproject.toml b/pyproject.toml index fd3251b4..d7886385 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,8 +123,8 @@ clean = "rm -rf docs/_build" [tool.hatch.envs.lint] dependencies = [ - "black>=23.3.0", - "ruff>=0.0.270", + "black>=23.9.1", + "ruff>=0.0.292", ] detached = true diff --git a/src/bootstrap3/renderers.py b/src/bootstrap3/renderers.py index 1dda58a7..55680988 100644 --- a/src/bootstrap3/renderers.py +++ b/src/bootstrap3/renderers.py @@ -382,20 +382,8 @@ def make_input_group(self, html): if (self.addon_before or self.addon_after) and isinstance( self.widget, (TextInput, NumberInput, EmailInput, URLInput, DateInput, Select, PasswordInput) ): - before = ( - '{addon}'.format( - input_class=self.addon_before_class, addon=self.addon_before - ) - if self.addon_before - else "" - ) - after = ( - '{addon}'.format( - input_class=self.addon_after_class, addon=self.addon_after - ) - if self.addon_after - else "" - ) + before = f'{self.addon_before}' if self.addon_before else "" + after = f'{self.addon_after}' if self.addon_after else "" html = f'