From b3c86802c4dfb29ba974e9c376f96a5523c785f3 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 16:40:20 +0000 Subject: [PATCH] refactor: remove unused imports An object has been imported but is not used anywhere in the file. It should either be used or the import should be removed. --- modules/afk.py | 4 ++-- modules/filters.py | 2 +- modules/help.py | 1 - modules/loader.py | 2 +- modules/notes.py | 2 +- modules/sessionkiller.py | 1 - modules/squotes.py | 1 - utils/handlers.py | 2 +- 8 files changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/afk.py b/modules/afk.py index 6ac0197..6d18933 100644 --- a/modules/afk.py +++ b/modules/afk.py @@ -19,11 +19,11 @@ import asyncio from datetime import datetime import humanize -from pyrogram import Client, enums, filters +from pyrogram import Client, filters from pyrogram.types import Message from utils.misc import modules_help, prefix -from utils.scripts import import_library, ReplyCheck +from utils.scripts import ReplyCheck # Variables AFK = False diff --git a/modules/filters.py b/modules/filters.py index 9f1bb4e..04e2159 100644 --- a/modules/filters.py +++ b/modules/filters.py @@ -18,7 +18,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from pyrogram import Client, ContinuePropagation, enums, errors, filters +from pyrogram import Client, ContinuePropagation, errors, filters from pyrogram.types import ( InputMediaAudio, InputMediaDocument, diff --git a/modules/help.py b/modules/help.py index 81d2e5f..a5a2cc5 100644 --- a/modules/help.py +++ b/modules/help.py @@ -12,7 +12,6 @@ # along with this program. If not, see . from pyrogram import Client -from pyrogram import enums as enums from pyrogram import filters from pyrogram.types import Message diff --git a/modules/loader.py b/modules/loader.py index ffe55a1..58aa154 100644 --- a/modules/loader.py +++ b/modules/loader.py @@ -9,7 +9,7 @@ import hashlib import os import requests -from pyrogram import Client, enums, filters +from pyrogram import Client, filters from pyrogram.types import Message from utils.misc import modules_help, prefix diff --git a/modules/notes.py b/modules/notes.py index e5fbc17..6c2dc7e 100644 --- a/modules/notes.py +++ b/modules/notes.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from pyrogram import Client, enums, errors, filters +from pyrogram import Client, errors, filters from pyrogram.types import Message from utils.db import db diff --git a/modules/sessionkiller.py b/modules/sessionkiller.py index c74a3b4..b204fa1 100644 --- a/modules/sessionkiller.py +++ b/modules/sessionkiller.py @@ -29,7 +29,6 @@ from pyrogram.types import Message from utils.db import db from utils.misc import modules_help, prefix -from textwrap import dedent auth_hashes = db.get("core.sessionkiller", "auths_hashes", []) diff --git a/modules/squotes.py b/modules/squotes.py index d516286..66dc894 100644 --- a/modules/squotes.py +++ b/modules/squotes.py @@ -15,7 +15,6 @@ # along with this program. If not, see . import base64 -import os from io import BytesIO import requests diff --git a/utils/handlers.py b/utils/handlers.py index 456b293..7e79bb2 100644 --- a/utils/handlers.py +++ b/utils/handlers.py @@ -2,7 +2,7 @@ import re from datetime import datetime, timedelta from typing import Dict, Union -from pyrogram import Client, enums +from pyrogram import Client from pyrogram.errors import ( ChatAdminRequired, PeerIdInvalid,