Commit fd92931
committed
test(types): consolidate chat_sdk.types import style (codeql)
CodeQL flagged test_types.py importing chat_sdk.types both as
`import chat_sdk.types as types_module` and via `from chat_sdk.types import`.
Its suggested "minimal fix" (delete the aliased import) would have broken the
build — `types_module` is referenced in 8 places to reach the module internals
`_message_adapter_map` and `_get_message_adapter`.
Correct consolidation: import those two names in the existing `from` block and
drop the alias, replacing the 8 `types_module.X` references with `X`. Pure
import-style change, no behavior change; test_types.py still 40 passed.
https://claude.ai/code/session_01FyMxQn2BEAzmwKS1GZczKj1 parent 44e86c1 commit fd92931
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
537 | | - | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
540 | | - | |
| 541 | + | |
541 | 542 | | |
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
548 | | - | |
549 | | - | |
| 549 | + | |
| 550 | + | |
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
583 | | - | |
| 584 | + | |
584 | 585 | | |
585 | | - | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
591 | 592 | | |
592 | 593 | | |
593 | 594 | | |
594 | | - | |
| 595 | + | |
595 | 596 | | |
596 | 597 | | |
597 | | - | |
| 598 | + | |
0 commit comments