Commit 87b9a00
committed
Refactor alert message builder for improved type handling and simplification
- Added `_get_alert_color()` method to centralize color retrieval for alerts
- Simplified `_get_alert_groups_blocks()` method by removing redundant type checking
- Updated `build()` method to use new `_get_alert_color()` method
- Narrowed type hints for alert groups processing
- Removed unnecessary type branching in alert groups handling1 parent af3c1eb commit 87b9a00
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
583 | | - | |
| 586 | + | |
584 | 587 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
598 | | - | |
| 599 | + | |
599 | 600 | | |
600 | 601 | | |
601 | 602 | | |
| |||
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
621 | | - | |
| 622 | + | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| |||
0 commit comments