Skip to content

Commit

Permalink
Make MultiDictProxy._collect_multiple_keys staticmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Feb 25, 2020
1 parent ba59660 commit 81a1e21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/webargs/multidictproxy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from collections.abc import Mapping

from webargs.compat import MARSHMALLOW_VERSION_INFO
from webargs.core import missing, is_multiple

from collections.abc import Mapping


class MultiDictProxy(Mapping):
"""
Expand All @@ -18,7 +18,8 @@ def __init__(self, multidict, schema):
self.data = multidict
self.multiple_keys = self._collect_multiple_keys(schema)

def _collect_multiple_keys(self, schema):
@staticmethod
def _collect_multiple_keys(schema):
result = set()
for name, field in schema.fields.items():
if not is_multiple(field):
Expand Down

0 comments on commit 81a1e21

Please sign in to comment.