Skip to content

Latest commit

 

History

History
93 lines (60 loc) · 2.77 KB

File metadata and controls

93 lines (60 loc) · 2.77 KB

CHANGELOG

Unreleased

  • Switch to to_info_dict() for parameter inspection, improving compatibility with various click versions.

2.0.2

Yanked: the changes in 2.0 related to defaults were found to be incorrect.

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

2.0.1

Yanked: the changes in 2.0 related to defaults were found to be incorrect.

  • 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

Yanked: the changes in 2.0 related to defaults were found to be incorrect.

  • 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

  • Add support for click>=8.3

1.2.0

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

1.1.0

  • 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

  • Add support for Python 3.13

0.0.7

  • 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

  • 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

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

0.0.4

  • Enhance documentation and examples
  • Add support for click.Path(path_type=...) as a type or a callable with an annotated return type. Unsupported path_type values will raise TypeError.
  • A new parameter is supported for check_param_annotations, known_type_names, a mapping of type values to strings. check_param_annotations will use this mapping in a best-effort fashion to display the names of types in BadAnnotation errors.

0.0.3

  • Remove ExplicitlyAnnotatedOption from the library due to issues with usability. It is now kept in the examples/ directory
  • Rename AnnotatedOption to AnnotatedParameter to encompass Argument subclasses as well

0.0.2

  • Fix release process to include build artifacts in github releases

0.0.1

  • Initial release