-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
bugSomething isn't workingSomething isn't workingt: documentationImprovements or additions to documentation/examplesImprovements or additions to documentation/examplest: refactor/typing/lintRefactors, typing changes and/or linting changesRefactors, typing changes and/or linting changes
Description
This is sort of a rehash of #614 (and #1045).
There are still a couple issues, mainly when used in cogs, many owing to the fact that overloads and generic callables don't really mix well :/
@check/@errordecorators in cogs trip up pyright already in fairly simple configurations- The documented parameter/return types of checks are slightly off in many cases, especially
boolvsCoro[bool]- Tangentially related, the
CheckAnyFailureattribute docs are the wrong way around
- Tangentially related, the
- The usage of
AnyContextin some decorator annotations is somewhat inconsistent Callable[[A | B], C]vsCallable[[A], C] | Callable[[B], C]
elenakrittik and Enegg
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingt: documentationImprovements or additions to documentation/examplesImprovements or additions to documentation/examplest: refactor/typing/lintRefactors, typing changes and/or linting changesRefactors, typing changes and/or linting changes