Skip to content

Commit e17cfb0

Browse files
committed
change validator signature
1 parent fb2f1ea commit e17cfb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_scheduler/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class NotificationsConfig(BaseModel):
4141
include_output: bool = False
4242

4343
@validator("send_to")
44-
def validate_send_to(self, send_to):
44+
def validate_send_to(cls, send_to):
4545
if len(send_to) > 1000:
4646
raise ValueError("Too many email addresses. Maximum allowed is 1000.")
4747
return send_to
4848

4949
@validator("events")
50-
def validate_events(self, events):
50+
def validate_events(cls, events):
5151
if len(events) > 1000:
5252
raise ValueError("Too many events. Maximum allowed is 1000.")
5353
return events

0 commit comments

Comments
 (0)