From dfd38c4e30febfaba2302eba352f2095816a629c Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 7 Nov 2023 12:31:07 -0800 Subject: Remove unnecessary pass and import statements --- src/wikiget/exceptions.py | 2 -- src/wikiget/file.py | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wikiget/exceptions.py b/src/wikiget/exceptions.py index 02ffe50..4afc97f 100644 --- a/src/wikiget/exceptions.py +++ b/src/wikiget/exceptions.py @@ -21,5 +21,3 @@ class ParseError(Exception): This exception is raised when the program's input is unable to be parsed as a valid download target. """ - - pass diff --git a/src/wikiget/file.py b/src/wikiget/file.py index 8de62ae..e2599c5 100644 --- a/src/wikiget/file.py +++ b/src/wikiget/file.py @@ -15,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with Wikiget. If not, see . -from typing import Any - from mwclient.image import Image from wikiget import DEFAULT_SITE @@ -46,7 +44,7 @@ class File: self.dest = dest if dest else name self.site = site if site else DEFAULT_SITE - def __eq__(self, other: Any) -> bool: + def __eq__(self, other: object) -> bool: """ Compares this File object with another for equality. -- cgit v1.2.3