Commit 105debd
committed
fix: accept any Mapping type for cohorts, not just dict
- Changed isinstance(cohorts, dict) to isinstance(cohorts, Mapping)
- Updated error message to reflect Mapping acceptance
- Aligns with base_params.cohorts type hint Union[str, Mapping[str, str]]
- Resolves Copilot review suggestion1 parent 53621a8 commit 105debd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | | - | |
| 1508 | + | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
| 1516 | + | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
| |||
0 commit comments