timed_events, plugin: Remove some DeprecationWarning on invalid escapes in docstrings.
This commit is contained in:
parent
ed0be7b57d
commit
f38bb06672
2 changed files with 4 additions and 4 deletions
|
@ -165,7 +165,7 @@ class PluginAPI:
|
|||
|
||||
:param datetime.datetime date: The time at which the handler must be executed
|
||||
:param function callback: The handler that will be executed
|
||||
:param \*args: Optional arguments passed to the handler.
|
||||
:param args: Optional arguments passed to the handler.
|
||||
:return: The created event.
|
||||
:rtype: :py:class:`timed_events.TimedEvent`
|
||||
"""
|
||||
|
@ -181,7 +181,7 @@ class PluginAPI:
|
|||
|
||||
:param int delay: The number of seconds to schedule the execution
|
||||
:param function callback: The handler that will be executed
|
||||
:param \*args: Optional arguments passed to the handler.
|
||||
:param args: Optional arguments passed to the handler.
|
||||
:return: The created event.
|
||||
:rtype: :py:class:`timed_events.DelayedEvent`
|
||||
"""
|
||||
|
|
|
@ -29,7 +29,7 @@ class DelayedEvent:
|
|||
|
||||
:param int delay: The number of seconds.
|
||||
:param function callback: The handler that will be executed.
|
||||
:param \*args: Optional arguments passed to the handler.
|
||||
:param args: Optional arguments passed to the handler.
|
||||
"""
|
||||
self.callback = callback
|
||||
self.args = args
|
||||
|
@ -51,7 +51,7 @@ class TimedEvent(DelayedEvent):
|
|||
|
||||
:param datetime.datetime date: Time at which the callback must be run.
|
||||
:param function callback: The handler that will be executed.
|
||||
:param \*args: Optional arguments passed to the handler.
|
||||
:param args: Optional arguments passed to the handler.
|
||||
"""
|
||||
delta = date - datetime.now()
|
||||
delay = delta.total_seconds()
|
||||
|
|
Loading…
Reference in a new issue