diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca806252..a28274d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 diff --git a/django_components/templatetags/component_tags.py b/django_components/templatetags/component_tags.py index 9a31a7eb..96fccc3a 100644 --- a/django_components/templatetags/component_tags.py +++ b/django_components/templatetags/component_tags.py @@ -292,7 +292,8 @@ def do_component_block(parser, token): def slot_tokens(parser): """Yield each 'slot' token appearing before the next 'endcomponent_block' token. - Raises TemplateSyntaxError if there are other content tokens or if there is no endcomponent_block token.""" + Raises TemplateSyntaxError if there are other content tokens or if there is no endcomponent_block token. + """ def is_whitespace(token): return (