File tree Expand file tree Collapse file tree 3 files changed +1
-107
lines changed
src/codegen/extensions/events Expand file tree Collapse file tree 3 files changed +1
-107
lines changed Original file line number Diff line number Diff line change 1
- import functools
2
- import os
3
- from typing import Callable , Optional , Protocol
4
- from anthropic import BaseModel
1
+ from typing import Protocol
5
2
import modal
6
- from codegen .extensions .clients .linear import LinearClient
7
3
import logging
8
4
9
5
from codegen .extensions .events .linear import Linear
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ def __init__(self, app: CodegenApp):
28
28
def subscribe_handler_to_webhook (self , web_url : str , event_name : str ):
29
29
client = LinearClient (access_token = self .access_token )
30
30
31
- print (f"Subscribing { web_url } to event { event_name } " )
32
-
33
31
result = client .register_webhook (
34
32
team_id = self .linear_team_id ,
35
33
webhook_url = web_url ,
@@ -62,7 +60,6 @@ def event(self, event_name):
62
60
:param register_hook: An optional function to call during registration,
63
61
e.g., to make an API call to register the webhook.
64
62
"""
65
- print ("debugging event decorator 1" )
66
63
def decorator (func ):
67
64
# Register the handler with the app's registry.
68
65
modal_ready_func = func
@@ -76,7 +73,6 @@ def decorator(func):
76
73
77
74
@functools .wraps (func )
78
75
def wrapper (* args , ** kwargs ):
79
- print ("wrapper called" )
80
76
return func (* args , ** kwargs )
81
77
return wrapper
82
78
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments