Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2022
1 parent 6d403ed commit a3949ef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/whitenoise/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
import re
import warnings
from posixpath import normpath
from typing import Callable, Generator, Iterable
from typing import Callable
from typing import Generator
from typing import Iterable
from wsgiref.headers import Headers
from wsgiref.util import FileWrapper

from .compat import StartResponse, WSGIApplication, WSGIEnvironment
from .compat import StartResponse
from .compat import WSGIApplication
from .compat import WSGIEnvironment
from .media_types import MediaTypes
from .responders import IsDirectoryError
from .responders import MissingFileError
Expand Down
5 changes: 4 additions & 1 deletion src/whitenoise/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import os
import re
from io import BytesIO
from typing import Callable, Generator, Pattern, Sequence
from typing import Callable
from typing import Generator
from typing import Pattern
from typing import Sequence

try:
import brotli
Expand Down
4 changes: 3 additions & 1 deletion src/whitenoise/responders.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
from http import HTTPStatus
from io import BufferedIOBase
from time import mktime
from typing import Callable, Pattern, Sequence
from typing import Callable
from typing import Pattern
from typing import Sequence
from urllib.parse import quote
from wsgiref.headers import Headers

Expand Down
4 changes: 3 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

import requests

from whitenoise.compat import StartResponse, WSGIApplication, WSGIEnvironment
from whitenoise.compat import StartResponse
from whitenoise.compat import WSGIApplication
from whitenoise.compat import WSGIEnvironment

TEST_FILE_PATH = os.path.join(os.path.dirname(__file__), "test_files")

Expand Down

0 comments on commit a3949ef

Please sign in to comment.