11"""Test to_dict functionality for all multidict types."""
2+
23from typing import Any , Type
34
45import pytest
@@ -100,9 +101,12 @@ def cls(self, multidict_module: Any) -> Any:
100101 def make_proxy (* args : Any , ** kwargs : Any ) -> MultiDictProxy [Any ]:
101102 md = multidict_module .MultiDict (* args , ** kwargs )
102103 return multidict_module .MultiDictProxy (md ) # type: ignore[no-any-return]
104+
103105 return make_proxy
104106
105- def test_to_dict_proxy_mutation_isolation (self , cls : Any , multidict_module : Any ) -> None :
107+ def test_to_dict_proxy_mutation_isolation (
108+ self , cls : Any , multidict_module : Any
109+ ) -> None :
106110 """Test that modifying returned dict does not affect the proxy."""
107111 md = multidict_module .MultiDict ([("a" , 1 )])
108112 proxy = multidict_module .MultiDictProxy (md )
@@ -119,6 +123,7 @@ def cls(self, multidict_module: Any) -> Any:
119123 def make_proxy (* args : Any , ** kwargs : Any ) -> CIMultiDictProxy [Any ]:
120124 md = multidict_module .CIMultiDict (* args , ** kwargs )
121125 return multidict_module .CIMultiDictProxy (md ) # type: ignore[no-any-return]
126+
122127 return make_proxy
123128
124129 def test_to_dict_case_insensitive_grouping (self , cls : Any ) -> None :
@@ -133,7 +138,9 @@ def test_to_dict_case_insensitive_grouping(self, cls: Any) -> None:
133138 assert result [key_a ] == [1 , 2 ]
134139 assert result [key_b ] == [3 ]
135140
136- def test_to_dict_proxy_mutation_isolation (self , cls : Any , multidict_module : Any ) -> None :
141+ def test_to_dict_proxy_mutation_isolation (
142+ self , cls : Any , multidict_module : Any
143+ ) -> None :
137144 """Test that modifying returned dict does not affect the proxy."""
138145 md = multidict_module .CIMultiDict ([("a" , 1 )])
139146 proxy = multidict_module .CIMultiDictProxy (md )
0 commit comments