Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move discord/utils.py to a separate discord/utils/ submodule. #2652

Open
Paillat-dev opened this issue Nov 17, 2024 · 0 comments
Open

Move discord/utils.py to a separate discord/utils/ submodule. #2652

Paillat-dev opened this issue Nov 17, 2024 · 0 comments
Labels
feature request New feature request

Comments

@Paillat-dev
Copy link
Contributor

Summary

The utils.py file should be refactored in a submodule to allow better distinction between util features.

What is the feature request for?

The core library

The Problem

Currently utils, like most of the library's code actually, is present in quite long files, utils.py is currently 1244 lines long. This is generally not enjoyable, and long files should be, when possible avoided. Additionally, utils used for many purposes in the library and "served" to the user are mixed up without clear distinction in utils.py. It should not be too hard, compared to the rest of the lib, to split up utils functions by scope, and utils should in principle not be all in one file.

The Ideal Solution

The best solution would be to make an utils submodule with __init__ exporting the user-facing utils, and the rest being accessed directly.

The Current Solution

n/a

Additional Context

n/a

@Paillat-dev Paillat-dev added the feature request New feature request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant