(squeeze: Literal[False])
| 446 | |
| 447 | |
| 448 | def _validate_groupby_squeeze(squeeze: Literal[False]) -> None: |
| 449 | # While we don't generally check the type of every arg, passing |
| 450 | # multiple dimensions as multiple arguments is common enough, and the |
| 451 | # consequences hidden enough (strings evaluate as true) to warrant |
| 452 | # checking here. |
| 453 | # A future version could make squeeze kwarg only, but would face |
| 454 | # backward-compat issues. |
| 455 | if squeeze is not False: |
| 456 | raise TypeError(f"`squeeze` must be False, but {squeeze!r} was supplied.") |
| 457 | |
| 458 | |
| 459 | def _resolve_group( |
no outgoing calls
no test coverage detected
searching dependent graphs…