dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.71k stars 960 forks source link

Patch the __repr__() when job_func is None (Fix #485) #569

Closed CPickens42 closed 1 year ago

CPickens42 commented 1 year ago

Hello,

When using a Factory design pattern for the class schedule.Job, I encountered the same error present in the issue #485. For debug purposes, it is quite convenient to have this patch. Otherwise, schedule is hard to use in Jupyter Notebook.

The patch is really simple. I can change the default value [None] by something else.

Kind regards,

coveralls commented 1 year ago

Coverage Status

Coverage: 99.713% (+0.002%) from 99.711% when pulling 6ca4e3252969e1e5cb2d8066109b132a51be7a55 on CPickens42:master into a3ecd3548aff70bef15a61baee0d2d7f22f57992 on dbader:master.

SijmenHuizenga commented 1 year ago

Thanks a lot for submitting this pr!