Skip to content

v2.14.0

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 24 Apr 06:45
· 130 commits to master since this release
fc8369f

2.14.0 - 2023-04-24

Added

  • Support for declaring command options through default descriptors. These descriptors are:
    • tanjun.annotations.attachment_field
    • tanjun.annotations.bool_field
    • tanjun.annotations.channel_field
    • tanjun.annotations.float_field
    • tanjun.annotations.int_field
    • tanjun.annotations.member_field
    • tanjun.annotations.mentionable_field
    • tanjun.annotations.role_field
    • tanjun.annotations.str_field
    • tanjun.annotations.user_field

Deprecated

  • Using the following classes as generic types (i.e. Class[...]):

    • tanjun.annotations.Converted
    • tanjun.annotations.Default
    • tanjun.annotations.Greedy
    • tanjun.annotations.Length
    • tanjun.annotations.Max
    • tanjun.annotations.Min
    • tanjun.annotations.Positional
    • tanjun.annotations.Ranged
    • tanjun.annotations.SnowflakeOr

    These can still be passed as other args to typing.Annotated after being initialised.