From 6d93cf9397479c03c8414a42521987249471975e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 9 Oct 2022 21:12:57 +0200 Subject: Remove deprecated pylint checks --- libmat2/archive.py | 6 +++--- libmat2/web.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'libmat2') diff --git a/libmat2/archive.py b/libmat2/archive.py index 17ec608..5f058b9 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py @@ -72,20 +72,20 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): def _specific_cleanup(self, full_path: str) -> bool: """ This method can be used to apply specific treatment to files present in the archive.""" - # pylint: disable=unused-argument,no-self-use + # pylint: disable=unused-argument return True # pragma: no cover def _specific_get_meta(self, full_path: str, file_path: str) -> dict[str, Any]: """ This method can be used to extract specific metadata from files present in the archive.""" - # pylint: disable=unused-argument,no-self-use + # pylint: disable=unused-argument return {} # pragma: no cover def _final_checks(self) -> bool: """ This method is invoked after the file has been cleaned, allowing to run final verifications. """ - # pylint: disable=unused-argument,no-self-use + # pylint: disable=unused-argument return True @staticmethod diff --git a/libmat2/web.py b/libmat2/web.py index d324996..574bdd7 100644 --- a/libmat2/web.py +++ b/libmat2/web.py @@ -103,7 +103,6 @@ class _HTMLParser(parser.HTMLParser): self.tag_required_blocklist = required_blocklisted_tags self.tag_blocklist = blocklisted_tags - # pylint: disable=R0201 def error(self, message): # pragma: no cover """ Amusingly, Python's documentation doesn't mention that this function needs to be implemented in subclasses of the parent class -- cgit v1.3