Commit f224e44
committed
Bench(fix[lgtm]): Let mypy type-check the scripts without the otel group
why: CI runs `mypy .`, which reaches `scripts/`, but installs only the
default and dev groups -- the `otel` group is deliberately excluded so the
ordinary gates stay lean. Every OpenTelemetry, pyroscope, and rampa import
was therefore unresolvable in CI while resolving fine on a machine that had
the group installed.
what:
- Allow those three imports to be missing, so the scripts type-check in both
environments rather than only the one the developer happens to have
- Relax subclassing-Any and untyped-decorator for the two modules that build
on them, scoped per module: an inline ignore would itself be unused wherever
the group is installed1 parent 297eb0b commit f224e44
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
189 | 213 | | |
190 | 214 | | |
191 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments