In pylint is there a way to locally disable a warning and then undo the previous suppression without explicitly giving a list?
问题 I am aware of the FAQ entry for PyLint which states that: 4.2 Is there a way to disable a message for a particular module only? Yes, you can disable or enable (globally disabled) messages at the module level by adding the corresponding option in a comment at the top of the file: # pylint: disable=wildcard-import, method-hidden # pylint: enable=too-many-lines However, how can I locally suppress a message and then simply restore the previous state, prior to suppression. I don't want to have to