Skip to content

Commit 159b332

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3844504 commit 159b332

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/corsheaders/decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
F = TypeVar("F", bound=Callable[..., HttpResponseBase])
1919

2020

21-
def cors(func: Optional[F] = None, *, conf: Settings = _conf) -> F | Callable[[F], F]:
21+
def cors(func: F | None = None, *, conf: Settings = _conf) -> F | Callable[[F], F]:
2222
if func is None:
2323
return cast(Callable[[F], F], functools.partial(cors, conf=conf))
2424

Diff for: tests/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from django.http import HttpResponse
66
from django.views.decorators.http import require_GET
77

8-
from corsheaders.decorators import cors
98
from corsheaders.conf import Settings
9+
from corsheaders.decorators import cors
1010

1111

1212
@require_GET

0 commit comments

Comments
 (0)