Merge pull request #223 from EmilStenstrom/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Emil Stenström 2023-02-07 09:05:36 +01:00 committed by GitHub
commit de14a940ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ repos:
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.12.0 rev: 23.1.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8

View file

@ -292,7 +292,8 @@ def do_component_block(parser, token):
def slot_tokens(parser): def slot_tokens(parser):
"""Yield each 'slot' token appearing before the next 'endcomponent_block' token. """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): def is_whitespace(token):
return ( return (