pypi absl-py 1.3.0
v1.3.0

latest releases: 2.1.0, 2.0.0, 1.4.0...
2 years ago

Added

  • (flags) Added a new absl.flags.set_default function that updates the flag
    default for a provided FlagHolder. This parallels the
    absl.flags.FlagValues.set_default interface which takes a flag name.
  • (flags) The following functions now also accept FlagHolder instance(s) in
    addition to flag name(s) as their first positional argument:
    • flags.register_validator
    • flags.validator
    • flags.register_multi_flags_validator
    • flags.multi_flags_validator
    • flags.mark_flag_as_required
    • flags.mark_flags_as_required
    • flags.mark_flags_as_mutual_exclusive
    • flags.mark_bool_flags_as_mutual_exclusive
    • flags.declare_key_flag

Changed

  • (testing) Assertions assertRaisesWithPredicateMatch and
    assertRaisesWithLiteralMatch now capture the raised Exception for
    further analysis when used as a context manager.
  • (testing) TextAndXMLTestRunner now produces time duration values with
    millisecond precision in XML test result output.
  • (flags) Keyword access to flag_name arguments in the following functions
    is deprecated. This parameter will be renamed in a future 2.0.0 release.
    • flags.register_validator
    • flags.validator
    • flags.register_multi_flags_validator
    • flags.multi_flags_validator
    • flags.mark_flag_as_required
    • flags.mark_flags_as_required
    • flags.mark_flags_as_mutual_exclusive
    • flags.mark_bool_flags_as_mutual_exclusive
    • flags.declare_key_flag

Don't miss a new absl-py release

NewReleases is sending notifications on new releases.