From 2586230a82103be39c3a7300cd1439d53f057316 Mon Sep 17 00:00:00 2001 From: Marcel Jackwerth Date: Wed, 5 Jun 2024 09:10:40 +0200 Subject: [PATCH] Remove leaky lru_cache --- src/marshmallow/schema.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py index 4f2d0c768..23b43c470 100644 --- a/src/marshmallow/schema.py +++ b/src/marshmallow/schema.py @@ -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 @@ -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)])