Skip to content

Unnecessary imports #1

@not-a-java-dev

Description

@not-a-java-dev

A lot of imports in most of the code does not give a purpose or is reimported multiple times
here is an example of useful.py

import discord
from discord import app_commands
from discord.ext import commands
import requests
import time # Not used
import json 
import random
import discord # REPEATED
from discord.ext import commands # REPEATED
from discord import app_commands # REPEATED
from discord.ext import tasks # Not used
import asyncio # Not used
from threading import Thread # Not used
import hashlib # Not used
import base64 # Not used
from enum import Enum # Not used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions