@@ -42,17 +42,17 @@ def multi_items(self) -> Generator[tuple[str, T], None, None]:
42
42
yield key , value
43
43
44
44
45
- class MultiDict (BaseMultiDict [T ], MultiMixin [T ], Generic [T ]):
45
+ class MultiDict (BaseMultiDict [T ], MultiMixin [T ], Generic [T ]): # pyright: ignore
46
46
"""MultiDict, using :class:`MultiDict <multidict.MultiDictProxy>`."""
47
47
48
- def __init__ (self , args : MultiMapping | Mapping [str , T ] | Iterable [tuple [str , T ]] | None = None ) -> None :
48
+ def __init__ (self , args : MultiMapping | Mapping [str , T ] | Iterable [tuple [str , T ]] | None = None ) -> None : # pyright: ignore
49
49
"""Initialize ``MultiDict`` from a`MultiMapping``,
50
50
:class:`Mapping <typing.Mapping>` or an iterable of tuples.
51
51
52
52
Args:
53
53
args: Mapping-like structure to create the ``MultiDict`` from
54
54
"""
55
- super ().__init__ (args or {})
55
+ super ().__init__ (args or {}) # pyright: ignore
56
56
57
57
def immutable (self ) -> ImmutableMultiDict [T ]:
58
58
"""Create an.
@@ -69,17 +69,17 @@ def copy(self) -> Self:
69
69
return type (self )(list (self .multi_items ()))
70
70
71
71
72
- class ImmutableMultiDict (MultiDictProxy [T ], MultiMixin [T ], Generic [T ]):
72
+ class ImmutableMultiDict (MultiDictProxy [T ], MultiMixin [T ], Generic [T ]): # pyright: ignore
73
73
"""Immutable MultiDict, using class:`MultiDictProxy <multidict.MultiDictProxy>`."""
74
74
75
- def __init__ (self , args : MultiMapping | Mapping [str , Any ] | Iterable [tuple [str , Any ]] | None = None ) -> None :
75
+ def __init__ (self , args : MultiMapping | Mapping [str , Any ] | Iterable [tuple [str , Any ]] | None = None ) -> None : # pyright: ignore
76
76
"""Initialize ``ImmutableMultiDict`` from a `MultiMapping``,
77
77
:class:`Mapping <typing.Mapping>` or an iterable of tuples.
78
78
79
79
Args:
80
80
args: Mapping-like structure to create the ``ImmutableMultiDict`` from
81
81
"""
82
- super ().__init__ (BaseMultiDict (args or {}))
82
+ super ().__init__ (BaseMultiDict (args or {})) # pyright: ignore
83
83
84
84
def mutable_copy (self ) -> MultiDict [T ]:
85
85
"""Create a mutable copy as a :class:`MultiDict`
@@ -112,10 +112,10 @@ def from_form_data(cls, form_data: dict[str, list[str] | str | UploadFile]) -> F
112
112
items = []
113
113
for k , v in form_data .items ():
114
114
if not isinstance (v , list ):
115
- items .append ((k , v ))
115
+ items .append ((k , v )) # pyright: ignore
116
116
else :
117
117
for sv in v :
118
- items .append ((k , sv ))
118
+ items .append ((k , sv )) # pyright: ignore
119
119
return cls (items )
120
120
121
121
async def close (self ) -> None :
0 commit comments