summaryrefslogtreecommitdiff
path: root/coverage/tracer.pyi
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-01 18:57:42 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-01 19:27:47 -0500
commit0c9b5e0e9da9c2cffd50db7b28142d22d0f66cee (patch)
treee407697322a76e40ccc38ac44aa4d2f2489d6dcc /coverage/tracer.pyi
parent8f4d404c8f9044ea1c3bf2479236f51d7706cb76 (diff)
downloadpython-coveragepy-git-0c9b5e0e9da9c2cffd50db7b28142d22d0f66cee.tar.gz
mypy: check collector.py and plugin_support.py
Diffstat (limited to 'coverage/tracer.pyi')
-rw-r--r--coverage/tracer.pyi35
1 files changed, 35 insertions, 0 deletions
diff --git a/coverage/tracer.pyi b/coverage/tracer.pyi
new file mode 100644
index 00000000..d1281767
--- /dev/null
+++ b/coverage/tracer.pyi
@@ -0,0 +1,35 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+from typing import Any, Dict
+
+from coverage.types import TFileDisposition, TTraceData, TTraceFn, TTracer
+
+class CFileDisposition(TFileDisposition):
+ canonical_filename: Any
+ file_tracer: Any
+ has_dynamic_filename: Any
+ original_filename: Any
+ reason: Any
+ source_filename: Any
+ trace: Any
+ def __init__(self) -> None: ...
+
+class CTracer(TTracer):
+ check_include: Any
+ concur_id_func: Any
+ data: TTraceData
+ disable_plugin: Any
+ file_tracers: Any
+ should_start_context: Any
+ should_trace: Any
+ should_trace_cache: Any
+ switch_context: Any
+ trace_arcs: Any
+ warn: Any
+ def __init__(self) -> None: ...
+ def activity(self) -> bool: ...
+ def get_stats(self) -> Dict[str, int]: ...
+ def reset_activity(self) -> Any: ...
+ def start(self) -> TTraceFn: ...
+ def stop(self) -> None: ...