Skip to content

Drop custom reload logic#6739

Open
Jackenmen wants to merge 9 commits intoCog-Creators:V3/developfrom
Jackenmen:drop_custom_reload_logic
Open

Drop custom reload logic#6739
Jackenmen wants to merge 9 commits intoCog-Creators:V3/developfrom
Jackenmen:drop_custom_reload_logic

Conversation

@Jackenmen
Copy link
Copy Markdown
Member

Description of the changes

Depends on #6693 - the actual change is literally just the last commit in this PR (-31 lines).
I wanted to limit #6693 to only have the CogManager namespace changes, without modifying the reload logic.
From what I can tell, the custom reload logic results in a more weird behaviour than you get with the simpler removal of the package from sys.modules, which is something we're already doing anyway.
Notably, is comparison against enums should work properly after this change, which has proved to be an issue previously.

Have the changes in this PR been tested?

No

@Jackenmen Jackenmen added this to the 3.6.0 milestone Apr 12, 2026
@Jackenmen Jackenmen added Type: Enhancement Something meant to enhance existing Red features. Blocked By: Other PR Blocked by another PR. labels Apr 12, 2026
@github-actions github-actions bot added Category: Cogs - Downloader This is related to the Downloader cog. Category: Meta This is related to the repository maintenance. Category: Core - API - Other This is related to core APIs that don't have a dedicated label. Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes). Category: Core - Other Internals This is related to core internals that don't have a dedicated label. labels Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked By: Other PR Blocked by another PR. Category: Cogs - Downloader This is related to the Downloader cog. Category: Core - API - Other This is related to core APIs that don't have a dedicated label. Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes). Category: Core - Other Internals This is related to core internals that don't have a dedicated label. Category: Meta This is related to the repository maintenance. Type: Enhancement Something meant to enhance existing Red features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant