Skip to content

Commit

Permalink
Silence flake8 warning about lru_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Dec 11, 2022
1 parent f8d13c4 commit 8ffd5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ 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)
@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 8ffd5c4

Please sign in to comment.