Skip to content

Commit 8423e92

Browse files
fixup! fixup! fixup! fixup! fixup! fixup! fixup! temp! debug logging
1 parent eace069 commit 8423e92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/profiling/collector/test_stack.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import threading
66
import time
7+
from typing import TYPE_CHECKING
78
from typing import Generator
89
from typing import List
910
from typing import Tuple
@@ -21,7 +22,10 @@
2122
from tests.conftest import get_original_test_name
2223
from tests.profiling.collector import pprof_utils
2324
from tests.profiling.collector import test_collector
24-
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]
2529

2630

2731
# Python 3.11.9 is not compatible with gevent, https://github.com/gevent/gevent/issues/2040

0 commit comments

Comments
 (0)