diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-07 12:31:07 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-07 12:31:07 -0800 |
| commit | dfd38c4e30febfaba2302eba352f2095816a629c (patch) | |
| tree | 336051e3f948dd3dc888e8ad47420fe2340b892c /src | |
| parent | 1f4046739a8fe913872a8b17362fe81a81adb581 (diff) | |
| download | wikiget-dfd38c4e30febfaba2302eba352f2095816a629c.tar.gz wikiget-dfd38c4e30febfaba2302eba352f2095816a629c.zip | |
Remove unnecessary pass and import statements
Diffstat (limited to 'src')
| -rw-r--r-- | src/wikiget/exceptions.py | 2 | ||||
| -rw-r--r-- | src/wikiget/file.py | 4 |
2 files changed, 1 insertions, 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 <https://www.gnu.org/licenses/>. -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. |
