Skip to content

Commit 731fd2a

Browse files
authored
Add Literal[True] overload for MultiDict.to_dict(). (#3074)
2 parents 042c4c5 + 5e8b1c1 commit 731fd2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/werkzeug/datastructures/structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def deepcopy(self, memo: t.Any = None) -> te.Self:
398398
return self.__class__(deepcopy(self.to_dict(flat=False), memo))
399399

400400
@t.overload
401-
def to_dict(self) -> dict[K, V]: ...
401+
def to_dict(self, flat: t.Literal[True] = ...) -> dict[K, V]: ...
402402
@t.overload
403403
def to_dict(self, flat: t.Literal[False]) -> dict[K, list[V]]: ...
404404
def to_dict(self, flat: bool = True) -> dict[K, V] | dict[K, list[V]]:

0 commit comments

Comments
 (0)