Skip to content

Commit e492e0c

Browse files
committed
make JobDef.on_events List[EventType] not str
1 parent 7f0130f commit e492e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_scheduler/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class CreateJobDefinition(BaseModel):
223223
compute_type: Optional[str] = None
224224
schedule: Optional[str] = None
225225
timezone: Optional[str] = None
226-
on_events: List[str] = None
226+
on_events: List[EventType] = None
227227

228228
@root_validator
229229
def compute_input_filename(cls, values) -> Dict:

0 commit comments

Comments
 (0)