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 eace069 commit 8423e92Copy full SHA for 8423e92
tests/profiling/collector/test_stack.py
@@ -4,6 +4,7 @@
4
import sys
5
import threading
6
import time
7
+from typing import TYPE_CHECKING
8
from typing import Generator
9
from typing import List
10
from typing import Tuple
@@ -21,7 +22,10 @@
21
22
from tests.conftest import get_original_test_name
23
from tests.profiling.collector import pprof_utils
24
from tests.profiling.collector import test_collector
-from tests.profiling.collector.pprof_pb2 import Sample
25
+
26
27
+if TYPE_CHECKING:
28
+ from tests.profiling.collector.pprof_pb2 import Sample # pyright: ignore[reportMissingModuleSource]
29
30
31
# Python 3.11.9 is not compatible with gevent, https://github.com/gevent/gevent/issues/2040
0 commit comments