dbader / schedule

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

Run with instance method #553

Open skjerns opened 1 year ago

skjerns commented 1 year ago

Is it possible to run functions of instance methods that accesses self within the function using the decorator?

When I try to run this, the function throws an error missing 1 required positional argument: 'self'

(this seems a very basic question, but I could not find any answer to it, so sorry if it is already answered somewhere)

pjsalazar commented 7 months ago

I'm running into the same issue. Did you ever find a workaround on this?

skjerns commented 7 months ago

nope, not really