| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [commands] use __args__ and __origin__ where applicable | Josh | 2021-04-11 | 2 | -17/+27 |
| | | |||||
| * | [commands] Fix repr for Greedy | Josh | 2021-04-10 | 1 | -0/+4 |
| | | |||||
| * | [commands] Refactor typing evaluation to not use get_type_hints | Rapptz | 2021-04-10 | 1 | -58/+103 |
| | | | | | | | | | | | | | | | | | get_type_hints had a few issues: 1. It would convert = None default parameters to Optional 2. It would not allow values as type annotations 3. It would not implicitly convert some string literals as ForwardRef In Python 3.9 `list['Foo']` does not convert into `list[ForwardRef('Foo')]` even though `typing.List` does this behaviour. In order to streamline it, evaluation had to be rewritten manually to support our usecases. This patch also flattens nested typing.Literal which was not done until Python 3.9.2. | ||||
| * | [commands] Remove legacy ExtensionNotFound.original attribute | Rapptz | 2021-04-10 | 1 | -4/+1 |
| | | |||||
| * | [commands] Minimise code duplication in channel converters | Nadir Chowdhury | 2021-04-10 | 1 | -117/+23 |
| | | |||||
| * | [commands] Make `commands.Greedy` a `typing.Generic` | James | 2021-04-10 | 2 | -23/+95 |
| | | |||||
| * | [commands] Provide a dynamic cooldown system | Dan Hess | 2021-04-10 | 2 | -19/+81 |
| | | |||||
| * | [commands]Add typing.Literal converter | Sigmath Bits | 2021-04-10 | 2 | -30/+99 |
| | | |||||
| * | [commands] Raise error when a cog name is already registered | Sebastian Law | 2021-04-08 | 1 | -2/+22 |
| | | |||||
| * | Use f-strings in more places that were missed. | Rapptz | 2021-04-08 | 7 | -40/+42 |
| | | |||||
| * | [commands] Use has_error_handler instead in command_error | pikaninja | 2021-04-07 | 1 | -2/+3 |
| | | |||||
| * | [commands] Only replace annotation if one was given | Rapptz | 2021-04-07 | 1 | -1/+3 |
| | | |||||
| * | Add `__all__` to remaining modules | Nadir Chowdhury | 2021-04-07 | 4 | -2/+17 |
| | | |||||
| * | [commands] Use typing.get_type_hints to resolve ForwardRefs | Nadir Chowdhury | 2021-04-06 | 1 | -6/+25 |
| | | |||||
| * | [commands] Fix classmethod converters not working. | Rapptz | 2021-04-05 | 1 | -7/+4 |
| | | | | | Protocols sure are annoying. | ||||
| * | [commands] Revert conversion code back to how it was originally | Rapptz | 2021-04-05 | 1 | -8/+7 |
| | | |||||
| * | [commands] Fix AttributeError for classes missing convert attribute | ToxicKidz | 2021-04-05 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix logic in Cog.has_error_handler() | Rapptz | 2021-04-05 | 1 | -1/+1 |
| | | |||||
| * | [commands] Address incorrect use of subclass (from type perspective) | Michael H | 2021-04-05 | 1 | -4/+5 |
| | | | | This is a follow up from #6641 | ||||
| * | [commands] Add more type information to public API of converters | Michael H | 2021-04-05 | 1 | -18/+18 |
| | | |||||
| * | Use covariant TypeVar for protocol | Michael H | 2021-04-05 | 1 | -1/+1 |
| | | |||||
| * | [commands] Fix @classmethod converters | Michael H | 2021-04-05 | 1 | -6/+9 |
| | | |||||
| * | Use typing.Protocol instead of abc.ABCMeta | James | 2021-04-04 | 2 | -29/+34 |
| | | |||||
| * | [commands] Use positional only parameter for Context.invoke | Rapptz | 2021-04-04 | 1 | -12/+2 |
| | | |||||
| * | Modernize code to use f-strings | Rapptz | 2021-04-04 | 12 | -108/+85 |
| | | | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`. | ||||
| * | [commands] Add missing versionadded on StoreChannelConverter | Rapptz | 2021-04-03 | 1 | -5/+7 |
| | | |||||
| * | [commands] Add StoreChannelConverter | DoggieLicc | 2021-04-03 | 1 | -0/+40 |
| | | |||||
| * | Implement StageChannel and related methods | Nadir Chowdhury | 2021-04-03 | 1 | -0/+41 |
| | | |||||
| * | [docs] copy signature from overridden and inherited methods | Sebastian Law | 2021-03-29 | 1 | -2/+1 |
| | | |||||
| * | [commands] Add support for stripping whitespace after the prefix | Rapptz | 2021-03-28 | 1 | -0/+10 |
| | | | | | This is configured with the strip_after_prefix option in `Bot.__init__` | ||||
| * | [commands] Remove nullability from help command implementation | Rapptz | 2021-03-28 | 1 | -16/+3 |
| | | | | | Fixes #5154 | ||||
| * | Add remove_markdown helper function | Edwin | 2021-03-28 | 1 | -1/+8 |
| | | |||||
| * | [commands] Only remove top level commands on cog load failure | Rapptz | 2021-03-28 | 1 | -1/+2 |
| | | |||||
| * | [commands] allow arbitrary callables in cooldown | Mikey | 2021-03-28 | 2 | -5/+11 |
| | | |||||
| * | [commands] fix documented type for Command.checks | Sebastian Law | 2021-03-24 | 1 | -1/+1 |
| | | |||||
| * | [commands] Include group args in command signature | jack1142 | 2021-03-24 | 1 | -4/+13 |
| | | |||||
| * | [commands] fix Context.channel property documented type | Sebastian Law | 2021-03-13 | 1 | -2/+2 |
| | | |||||
| * | Fix references to snowflakes being max 21 long | Nihaal Sangha | 2021-03-02 | 1 | -4/+4 |
| | | |||||
| * | [tasks] remove redundant condition in Loop.next_iteration | Sebastian Law | 2021-02-28 | 1 | -1/+1 |
| | | | | | | | | | self._task is only None if the Loop has never been started before, which means None should be returned always, regardless of how many seconds was passed into the constructor this didn't break anything before because self._next_iteration will be None as well if self._task is None. | ||||
| * | Code optimisations and refactoring via Sourcery | Nadir Chowdhury | 2021-02-24 | 5 | -12/+10 |
| | | |||||
| * | Fix NameError with invoked_parents | Nadir Chowdhury | 2021-02-24 | 1 | -0/+1 |
| | | |||||
| * | [commands] Added tribool behaviour to HelpCommand.verify_checks | sudosnok | 2021-02-24 | 1 | -3/+11 |
| | | |||||
| * | [commands] properly assign ctx.invoked_with with ctx. | Sebastian Law | 2021-02-23 | 1 | -1/+1 |
| | | | | | resolves #6461 | ||||
| * | [commands] Add Context.invoked_parents | Sebastian Law | 2021-02-23 | 2 | -0/+15 |
| | | |||||
| * | [commands] Allow relative paths when handling extensions | Kaylynn Morgan | 2021-02-23 | 1 | -3/+37 |
| | | |||||
| * | [tasks] make __call__ actually appear in the docs | Sebastian Law | 2021-02-21 | 1 | -1/+1 |
| | | |||||
| * | [commands] Handle positional-only parameters in bot commands | Bryan Forbes | 2021-02-17 | 1 | -2/+2 |
| | | |||||
| * | [commands] Add support for rgb function in ColourConverter | Rapptz | 2021-02-07 | 1 | -11/+58 |
| | | | | | | | This also adds support for 3 digit hex. Fixes #6374 | ||||
| * | [commands] Add discord.Guild converter and GuildNotFound error | Alex Nørgaard | 2021-02-07 | 2 | -1/+45 |
| | | | | | | | | * Add discord.Guild converter and GuildNotFound error * note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None * edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception. | ||||
| * | [commands] Fix documented type of `Context.cog` | Jonas Bohmann | 2021-01-24 | 1 | -1/+1 |
| | | |||||