Skip to content

fix: loosen overly strict type assertions - #1617

Merged
shiftinv merged 5 commits into
masterfrom
fix/overly-strict-assertions
Oct 20, 2026
Merged

shiftinv merged 5 commits into
masterfrom
fix/overly-strict-assertions

Conversation

@shiftinv

Copy link
Copy Markdown
Member

Summary

Fixes #1616 by turning the assertion back into a pyright: ignore.

I manually checked all the assertions added in #1381 (whiuch caused the linked issue), the vast majority of them are completely fine, but a few more can be loosened further without much issue.

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 Oct 16, 2026
@shiftinv shiftinv added this to disnake Oct 16, 2026
@github-project-automation github-project-automation Bot moved this to Todo in disnake Oct 16, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 disnake | 🛠️ Build #35274912 | 📁 Comparing 4443d28 against latest (66c8e6f)

  🔍 Preview build  

8 files changed · ± 8 modified

± Modified

@shiftinv
shiftinv merged commit 0c7d1cd into master Oct 20, 2026
34 checks passed
@shiftinv
shiftinv deleted the fix/overly-strict-assertions branch October 20, 2026 16:15
@github-project-automation github-project-automation Bot moved this from Todo to Done in disnake Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Checks "bot_has_permissions" "has_permissions" no longer works in DMs.

1 participant