Skip to content

Releases: sirosen/click-type-test

2.0.2

10 Oct 20:01
2.0.2

Choose a tag to compare

  • Improve handling of default tuples for multi use options whose param type is a Choice

2.0.1

10 Oct 19:26
2.0.1

Choose a tag to compare

  • Fix a bug in which the types of defaults were not checked against already deduced types, resulting in incorrect union types being built for options with defaults.

2.0.0

10 Oct 18:39
2.0.0

Choose a tag to compare

  • Switch to to_info_dict() for parameter inspection, improving compatibility with various click versions
  • When a parameter is given a default, click_type_test will now attempt to take the runtime type of that default into account

1.3.0

18 Sep 20:51
1.3.0

Choose a tag to compare

  • Add support for click>=8.3

1.2.0

18 Sep 18:29
1.2.0

Choose a tag to compare

  • click-type-test now requires click<8.3, until support for version 8.3 can be added

1.1.0

07 Jan 19:12
1.1.0

Choose a tag to compare

  • Support looser comparisons between Tuple and Union types.tuple[...] and typing.Tuple[...] should now compare equal, as should Unions in which the order of the union members varies.

1.0.0

28 Oct 20:21
1.0.0

Choose a tag to compare

  • Add support for Python 3.13

0.0.7

22 Dec 04:53
0.0.7

Choose a tag to compare

  • Add a parameter, overrides, to check_param_annotations which can be used to skip type deduction and use a hard-coded value instead

0.0.6

21 Dec 21:10
0.0.6

Choose a tag to compare

  • The type annotation used as the return type of a callback on a parameter will now be treated as an override which takes precedence over any deduction about the parameter type
  • The type annotation used as the return type of a custom type's convert method will be checked and used as the annotated value for parameter types which do not implement AnnotatedParamType
  • The documentation is more explicit about type evaluation logic and order of overrides

0.0.5

06 Oct 04:23
0.0.5

Choose a tag to compare

  • Fix handling for required options, non-required arguments, nargs=-1, and
    nargs=N for N>1