(self, flat: t.Literal[True] = ...)
| 399 | |
| 400 | @t.overload |
| 401 | def to_dict(self, flat: t.Literal[True] = ...) -> dict[K, V]: ... |
| 402 | @t.overload |
| 403 | def to_dict(self, flat: t.Literal[False]) -> dict[K, list[V]]: ... |
| 404 | def to_dict(self, flat: bool = True) -> dict[K, V] | dict[K, list[V]]: |