We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16fbe6e commit 2109f36Copy full SHA for 2109f36
src/repl_python_wakatime/backends/codestats.py
@@ -36,9 +36,7 @@ class CodeStats(Hook):
36
interval: int = 60 # interval at which stats are sent
37
timeout: ClientTimeout | None = None
38
39
- def __post_init__(
40
- self,
41
- ) -> None:
+ def __post_init__(self) -> None:
42
"""Init.
43
44
:rtype: None
@@ -63,10 +61,10 @@ def __post_init__(
63
61
self.timeout = ClientTimeout(10)
64
62
self.session = None
65
self.loop = asyncio.new_event_loop()
66
- self.thread = Thread(target=self.worker, daemon=True)
67
- self.thread.start()
68
self.event = Event()
69
self.lock = Lock()
+ self.thread = Thread(target=self.worker, daemon=True)
+ self.thread.start()
70
71
def __call__(self, xp: int = 1) -> None:
72
"""Add xp.
0 commit comments