File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import functools
4+ from collections .abc import Callable
45from collections .abc import Coroutine
56from typing import Any
6- from typing import Callable
77from typing import ParamSpec
88from typing import TypeVar
99
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments