Skip to content

Commit 0b7c194

Browse files
address linting errors
1 parent dbf46cd commit 0b7c194

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/django_github_app/_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

33
import functools
4+
from collections.abc import Callable
45
from collections.abc import Coroutine
56
from typing import Any
6-
from typing import Callable
77
from typing import ParamSpec
88
from typing import TypeVar
99

src/django_github_app/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_webhook_views():
1818
callback = pattern.callback
1919
view_class = getattr(callback, "view_class", None)
2020
if view_class:
21-
if issubclass(view_class, (AsyncWebhookView, SyncWebhookView)):
21+
if issubclass(view_class, AsyncWebhookView | SyncWebhookView):
2222
found_views.append(view_class)
2323

2424
return found_views

src/django_github_app/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _parse_private_key(self, value: Any) -> str:
3939
if not value:
4040
return ""
4141

42-
if not isinstance(value, (str, Path)):
42+
if not isinstance(value, str | Path):
4343
return str(value)
4444

4545
if isinstance(value, str) and value.startswith("-----BEGIN"):

0 commit comments

Comments
 (0)