File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/repl_python_wakatime/hooks Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 13
13
from http .client import HTTPException
14
14
from socket import gethostname
15
15
from ssl import CertificateError
16
- from typing import NoReturn
16
+ from typing import Any , NoReturn
17
17
from urllib .error import URLError
18
18
from urllib .request import Request , urlopen
19
19
20
+ from .. import __version__
21
+
20
22
logger = logging .getLogger (__name__ )
21
23
INTERVAL = 10 # interval at which stats are sent
22
24
SLEEP_INTERVAL = 0.1 # sleep interval for timeslicing
@@ -31,6 +33,8 @@ def codestats_hook(
31
33
language_type : str = "Terminal (python)" ,
32
34
service_name : str = "codestats" ,
33
35
user_name : str = gethostname (),
36
+ * args : Any ,
37
+ ** kwargs : Any ,
34
38
) -> None :
35
39
"""Codestats hook.
36
40
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ def send_wakatime_heartbeat(
15
15
plugin : str = "repl-python-wakatime" ,
16
16
filenames : list [str ] = [".git" ],
17
17
detect_func : Callable [[str ], bool ] = os .path .isdir ,
18
+ * args : Any ,
19
+ ** kwargs : Any ,
18
20
) -> None :
19
21
"""Send wakatime heartbeat.
20
22
You can’t perform that action at this time.
0 commit comments