File tree Expand file tree Collapse file tree
src/repl_python_wakatime/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from http .client import HTTPException
1414from socket import gethostname
1515from ssl import CertificateError
16- from typing import NoReturn
16+ from typing import Any , NoReturn
1717from urllib .error import URLError
1818from urllib .request import Request , urlopen
1919
20+ from .. import __version__
21+
2022logger = logging .getLogger (__name__ )
2123INTERVAL = 10 # interval at which stats are sent
2224SLEEP_INTERVAL = 0.1 # sleep interval for timeslicing
@@ -31,6 +33,8 @@ def codestats_hook(
3133 language_type : str = "Terminal (python)" ,
3234 service_name : str = "codestats" ,
3335 user_name : str = gethostname (),
36+ * args : Any ,
37+ ** kwargs : Any ,
3438) -> None :
3539 """Codestats hook.
3640
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ def send_wakatime_heartbeat(
1515 plugin : str = "repl-python-wakatime" ,
1616 filenames : list [str ] = [".git" ],
1717 detect_func : Callable [[str ], bool ] = os .path .isdir ,
18+ * args : Any ,
19+ ** kwargs : Any ,
1820) -> None :
1921 """Send wakatime heartbeat.
2022
You can’t perform that action at this time.
0 commit comments