Skip to content

Commit 81a1e21

Browse files
committed
Make MultiDictProxy._collect_multiple_keys staticmethod
1 parent ba59660 commit 81a1e21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/webargs/multidictproxy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
from collections.abc import Mapping
2+
13
from webargs.compat import MARSHMALLOW_VERSION_INFO
24
from webargs.core import missing, is_multiple
35

4-
from collections.abc import Mapping
5-
66

77
class MultiDictProxy(Mapping):
88
"""
@@ -18,7 +18,8 @@ def __init__(self, multidict, schema):
1818
self.data = multidict
1919
self.multiple_keys = self._collect_multiple_keys(schema)
2020

21-
def _collect_multiple_keys(self, schema):
21+
@staticmethod
22+
def _collect_multiple_keys(schema):
2223
result = set()
2324
for name, field in schema.fields.items():
2425
if not is_multiple(field):

0 commit comments

Comments
 (0)