Skip to content

Commit 0898525

Browse files
committed
fix
1 parent 328bbd7 commit 0898525

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/codegen/extensions/events/interface.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11

2-
from typing import TYPE_CHECKING, Protocol
3-
4-
if TYPE_CHECKING:
5-
from modal import App
2+
from typing import Protocol
3+
import modal
64

75
class EventHandlerManagerProtocol(Protocol):
8-
def subscribe_handler_to_webhook(self, func_name: str, modal_app: App, event_name):
6+
def subscribe_handler_to_webhook(self, func_name: str, modal_app: modal.App, event_name):
97
pass
10-
def unsubscribe_handler_to_webhook(self, func_name: str, modal_app: App, event_name):
8+
def unsubscribe_handler_to_webhook(self, func_name: str, modal_app: modal.App, event_name):
119
pass
1210

1311
def unsubscribe_all_handlers(self):

0 commit comments

Comments
 (0)