Commit 5816e2d
Remove live_collector constant re-exports from public API
live_collector/__init__.pyi re-exported ~30 TUI layout/color constants
(MICROSECONDS_PER_SECOND, MIN_TERMINAL_WIDTH, WIDTH_THRESHOLD_*, COLOR_PAIR_*,
COL_WIDTH_*, etc.) in __all__. Nothing outside the live_collector package
ever imports them — only LiveStatsCollector and MockDisplay are actually
used by callers in the source and tests.
Judgement calls — removed:
- live_collector/__init__.pyi: stripped all constant imports and __all__
entries down to the 10 public classes (LiveStatsCollector, DisplayInterface,
CursesDisplay, MockDisplay, and the Widget subclasses) — the constants
are internal TUI dimensions and curses color pair IDs, not user-facing API
- live_collector/constants.pyi: removed DISPLAY_UPDATE_HZ, COL_WIDTH_NSAMPLES,
COL_SPACING, COL_WIDTH_SAMPLE_PCT, COL_WIDTH_TIME, MIN_AVAILABLE_SPACE —
these became unreferenced once the __init__ re-exports were dropped; they
are not imported by any other stub in the package
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 56b03c7 commit 5816e2d
File tree
2 files changed
+0
-76
lines changed- stdlib/profiling/sampling/live_collector
2 files changed
+0
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 2 | | |
39 | 3 | | |
40 | 4 | | |
| |||
56 | 20 | | |
57 | 21 | | |
58 | 22 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | | - | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
| |||
0 commit comments