Commit e9738a5
committed
fix: improve DataFrame.from_records type annotations
- Update data parameter types to accept Sequence[Mapping[str, Any]] and Mapping[str, SequenceNotStr[Any]]
- Add comprehensive tests for np.ndarray, tuples, and mapping inputs
- Address GitHub issue #1334 per Dr-Irv feedback
- All 207 DataFrame tests pass with no issues1 parent bc7228d commit e9738a5
2 files changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
| 551 | + | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4693 | 4693 | | |
4694 | 4694 | | |
4695 | 4695 | | |
4696 | | - | |
| 4696 | + | |
4697 | 4697 | | |
4698 | 4698 | | |
4699 | 4699 | | |
| |||
4715 | 4715 | | |
4716 | 4716 | | |
4717 | 4717 | | |
4718 | | - | |
4719 | | - | |
4720 | | - | |
4721 | | - | |
4722 | | - | |
| 4718 | + | |
| 4719 | + | |
4723 | 4720 | | |
4724 | | - | |
| 4721 | + | |
4725 | 4722 | | |
4726 | 4723 | | |
4727 | 4724 | | |
4728 | | - | |
4729 | | - | |
| 4725 | + | |
| 4726 | + | |
4730 | 4727 | | |
4731 | | - | |
| 4728 | + | |
4732 | 4729 | | |
4733 | 4730 | | |
4734 | 4731 | | |
4735 | | - | |
4736 | | - | |
| 4732 | + | |
| 4733 | + | |
4737 | 4734 | | |
4738 | | - | |
| 4735 | + | |
4739 | 4736 | | |
4740 | 4737 | | |
4741 | 4738 | | |
| |||
0 commit comments