Support for declaring the options for a command using
**kwargs: typing.Unpack[TypedDict] when using the annotations parsing impl in tanjun.annotations.
tanjun.abc.NO_PASS for marking command options as being not passed when they weren't provided.
Changed
Marked deprecated classes, functions and overloads as deprecated using typing.deprecated.
Deprecated class aliases are now separate classes to allow warning on init.
Deprecated
Renamed tanjun.parsing.UNDEFINED_DEFAULT and
tanjun.commands.slash.UNDEFINED_DEFAULT to tanjun.abc.NO_DEFAULT.
Context.create_initial_response (and by extension Context.respond for the initial
response specifically) will no-longer try to pass the attachment, component or embed as
the actual message content when passed for the content argument for REST-based
interaction commands.
Removed use of and references to hikari.RateLimitedError to fix compatibility with
hikari>=2.0.0.dev116.
Improved the typing of callbacks which support DI to enforce the type of any positionally
passed arguments with a static type.
Fixed
tanjun.annotations.Converted now properly overrides the actual type annotation for
slash commands.
The add_{}_option and with_{}_option methods for the standard slash command impl
will no-longer mishandle iterable but non-sequence types like enum.Enum as if
they were a sequence of converters when they are passed as the value for converters.
Support for declaring the options for a command using
**kwargs: typing.Unpack[TypedDict] when using the annotations parsing impl in
[tanjun.annotations][].
[tanjun.abc.NO_PASS][] for marking command options as being not passed when they
weren't provided.
Changed
Marked deprecated classes, functions and overloads as deprecated using typing.deprecated.
Deprecated class aliases are now separate classes to allow warning on init.
Deprecated
Renamed [tanjun.parsing.UNDEFINED_DEFAULT][] and
[tanjun.commands.slash.UNDEFINED_DEFAULT][] to [tanjun.abc.NO_DEFAULT][].
[tanjun.parsing.UndefinedT][].
[2.11.4] - 2023-02-08
Fixed
Context.create_initial_response (and by extension Context.respond for the initial
response specifically) will no-longer try to pass the attachment, component or embed as
the actual message content when passed for the content argument for REST-based
interaction commands.
Removed use of and references to hikari.RateLimitedError to fix compatibility with
hikari>=2.0.0.dev116.
[2.11.3] - 2023-02-01
Added
[tanjun.MenuHooks][] is now exported top-level.
Changed
Improved the typing of callbacks which support DI to enforce the type of any positionally
passed arguments with a static type.
Fixed
[tanjun.annotations.Converted][] now properly overrides the actual type annotation for
slash commands.
The add_{}_option and with_{}_option methods for the standard slash command impl
will no-longer mishandle iterable but non-sequence types like [enum.Enum][] as if
they were a sequence of converters when they are passed as the value for converters.
[2.11.2] - 2023-01-23
Changed
[tanjun.clients.Client.from_gateway_bot][] can now also take cache-less ShardAware bots.
Fixed
[tanjun.clients.Client.set_human_only][] no longer registers the internal check multiple
times when called with [True][] multiple times.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps hikari-tanjun from 2.7.0a1 to 2.12.0.
Release notes
Sourced from hikari-tanjun's releases.
... (truncated)
Changelog
Sourced from hikari-tanjun's changelog.
... (truncated)
Commits
c3f9541
Bump ver for release (#723)f68d464
Document being able to use TypedDict for kwargs with annotation parsing (#722)0233a89
Support using Unpack[TypedDict] to annotate kwargs for sig parsing (#721)7970859
Fix runtime spelling of AnyCheckSig (#720)8257867
Bump piped fromee08040
to1d563c7
(#719)e8ea432
Small doc fix (#718)d9c48d4
Small doc fixes (#717)4a9d09a
Small doc fixes (#716)746eb79
Small doc fix (#715)8f889b3
Small config formatting change (#714)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)