Skip to content

v2.7.0a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 24 Sep 13:29
· 399 commits to master since this release
366b784

2.7.0a1 - 2022-09-24

Added

  • Support for marking positional message arguments as optional when using annotation parsing.
  • tanjun.annotations.Default for setting the default for an argument while leaving the actual parameter required.

Changed

  • tanjun.annotations.Flag will no longer unset any previously set aliases.

Deprecated

  • tanjun.annotations.Flag.default and the default argument for tanjun.annotations.Flag.__init__. tanjun.annotations.Default should be used instead.

Fixed

  • Don't ignore parameter annotations when the top-level type-hint is a union.