summaryrefslogtreecommitdiff
path: root/pylint/message
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-19 16:26:52 +0200
committerGitHub <noreply@github.com>2022-04-19 16:26:52 +0200
commitac6efbff8ba8145407dad16b927b8b9df5976ee6 (patch)
tree0438af624c8435c4efd8f7d8748322c1937ccca6 /pylint/message
parentda7a99d7a27b4cc42512e8b7d794437fca06e995 (diff)
downloadpylint-git-ac6efbff8ba8145407dad16b927b8b9df5976ee6.tar.gz
Rename ``cache-max-size-none`` and check ``functools.cache`` (#6182)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/message')
-rw-r--r--pylint/message/message_definition_store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/message/message_definition_store.py b/pylint/message/message_definition_store.py
index 0c4cdb308..252c1a3b3 100644
--- a/pylint/message/message_definition_store.py
+++ b/pylint/message/message_definition_store.py
@@ -55,7 +55,7 @@ class MessageDefinitionStore:
# and the arguments are relatively small in size we do not run the
# risk of creating a large memory leak.
# See discussion in: https://github.com/PyCQA/pylint/pull/5673
- @functools.lru_cache(maxsize=None) # pylint: disable=cache-max-size-none
+ @functools.lru_cache(maxsize=None) # pylint: disable=method-cache-max-size-none
def get_message_definitions(self, msgid_or_symbol: str) -> list[MessageDefinition]:
"""Returns the Message definition for either a numeric or symbolic id.