Skip to content

fix(tasks): improve copying of Loop subclasses - #1600

Open
shiftinv wants to merge 3 commits into
masterfrom
fix/custom-loop-clone
Open

fix(tasks): improve copying of Loop subclasses#1600
shiftinv wants to merge 3 commits into
masterfrom
fix/custom-loop-clone

Conversation

@shiftinv

@shiftinv shiftinv commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

Similar to commands.Command, tasks.Loop now retains the original set of **kwargs (and callback) to be used for clone()'ing the loop later, which reduces the boilerplate code needed for implementing Loop subclasses with a custom set of args.

Checklist

  • If code changes were made, then they have been tested
    • I have updated the documentation to reflect the changes
    • I have formatted the code properly by running uv run nox -s lint
    • I have type-checked the code by running uv run nox -s pyright
  • This PR fixes an issue
  • This PR adds something new (e.g. new method or parameters)
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@shiftinv shiftinv added this to the v2.13 milestone Aug 19, 2026
@shiftinv shiftinv added the s: needs review Issue/PR is awaiting reviews label Aug 19, 2026
@shiftinv shiftinv added this to disnake Aug 19, 2026
@github-project-automation github-project-automation Bot moved this to Todo in disnake Aug 19, 2026
@read-the-docs-community

read-the-docs-community Bot commented Aug 19, 2026

Copy link
Copy Markdown

Documentation build overview

📚 disnake | 🛠️ Build #34135674 | 📁 Comparing 7aa9690 against latest (6a8247c)

  🔍 Preview build  

48 files changed · ± 48 modified

± Modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s: needs review Issue/PR is awaiting reviews t: bugfix

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant