fix(ocpp-server): ensure the CLI options help is not truncated
[e-mobility-charging-stations-simulator.git] / tests / ocpp-server / timer.py
index b267bef674386ed71505e1bf57c27ca770bb405f..e81d05b951146db20777227aa5fc98b01e7e68b2 100644 (file)
@@ -1,6 +1,4 @@
-"""
-Timer for asyncio.
-"""
+"""Timer for asyncio."""
 
 import asyncio
 
@@ -14,10 +12,11 @@ class Timer:
         callback_args=(),
         callback_kwargs=None,
     ):
-        """An asynchronous Timer object.
+        """
+        An asynchronous Timer object.
 
         Parameters
-        -----------
+        ----------
         timeout: :class:`float`:
         The duration for which the timer should last.
 
@@ -33,6 +32,7 @@ class Timer:
 
         callback_kwargs: Optional[:class:`dict`]:
         The kwargs to be passed to the callback.
+
         """
         self._timeout = timeout
         self._repeat = repeat
@@ -61,7 +61,5 @@ class Timer:
             self._callback(*self._callback_args, **self._callback_kwargs)
 
     def cancel(self):
-        """
-        Cancels the timer. The callback will not be called.
-        """
+        """Cancels the timer. The callback will not be called."""
         self._task.cancel()