Skip to content

Commit 3a7c7ce

Browse files
committed
Test fixes
1 parent f22f0eb commit 3a7c7ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/turbo_response/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Standard Library
2-
from typing import Any, Dict
2+
from typing import Any, Dict, Optional
33

44
# Django
55
from django.http import HttpRequest, HttpResponse
@@ -73,7 +73,7 @@ class TurboStreamDeleteView(TurboStreamResponseMixin, DeleteView):
7373

7474
turbo_stream_action = Action.REMOVE
7575

76-
def get_turbo_stream_target(self) -> str:
76+
def get_turbo_stream_target(self) -> Optional[str]:
7777
return f"{self.object._meta.model_name}-{self.object.pk}"
7878

7979
def delete(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:

0 commit comments

Comments
 (0)