Commit 5e817cd
Stubtest: clean up the
There's a small semantic change in this PR (instead of returning `False`
if trying to access the `__module__` attribute raises an exception, we
now just move on to the next heuristic). But the main purpose of this PR
is to make the code more readable, as this function was getting quite
hard to understand.
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>_belongs_to_runtime function (#14361)1 parent 9dc624b commit 5e817cd
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | | - | |
| 357 | + | |
355 | 358 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
367 | 371 | | |
368 | 372 | | |
369 | 373 | | |
370 | | - | |
371 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
372 | 377 | | |
373 | 378 | | |
374 | 379 | | |
| |||
0 commit comments