Skip to content

Commit f153966

Browse files
rushilpatel0github-actions[bot]
authored andcommitted
Automated pre-commit update
1 parent fc79c5e commit f153966

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

codegen-examples/examples/linear_webhooks/webhooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# The @app.linear.event() decorator takes care of subscribing to the webhook and also unsubscribing when the deployment spun
1010
# Load environment variables from .env file
1111

12+
1213
@app.cls(secrets=[modal.Secret.from_dotenv()])
1314
class LinearEventHandlers:
1415
@modal.enter()

src/codegen/extensions/events/linear.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def __init__(self, app: modal.App):
2727
self.registered_handlers = {}
2828
self._webhook_url = None
2929

30-
3130
def subscribe_handler_to_webhook(self, handler: RegisteredWebhookHandler):
3231
client = LinearClient(access_token=self.access_token)
3332
web_url = modal.Function.from_name(app_name=self.app.name, name=handler.handler_func.__qualname__).web_url
@@ -55,7 +54,6 @@ def unsubscribe_all_handlers(self):
5554
for handler in self.registered_handlers:
5655
self.unsubscribe_handler_to_webhook(self.registered_handlers[handler])
5756

58-
5957
def event(self, event_name):
6058
"""Decorator for registering an event handler.
6159

0 commit comments

Comments
 (0)