Skip to content

Commit

Permalink
Remove leaky lru_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcljx committed Jun 5, 2024
1 parent aaecd5b commit 2586230
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from abc import ABCMeta
from collections import OrderedDict, defaultdict
from collections.abc import Mapping
from functools import lru_cache

from marshmallow import base, class_registry, types
from marshmallow import fields as ma_fields
Expand Down Expand Up @@ -1056,7 +1055,6 @@ def _bind_field(self, field_name: str, field_obj: ma_fields.Field) -> None:
raise error
self.on_bind_field(field_name, field_obj)

@lru_cache(maxsize=8) # noqa (https://github.com/PyCQA/flake8-bugbear/issues/310)
def _has_processors(self, tag) -> bool:
return bool(self._hooks[(tag, True)] or self._hooks[(tag, False)])

Expand Down

0 comments on commit 2586230

Please sign in to comment.