(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
v1.2.0
Fixed
Fixed a crash in Python 3.11 when TempFileCleanup.SUCCESS is used.
v1.1.0
Changed
Flag instances now raise an error if used in a bool context. This prevents the occasional mistake of testing an instance for truthiness rather than testing flag.value.
(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
1.2.0 (2022-07-18)
Fixed
Fixed a crash in Python 3.11 when TempFileCleanup.SUCCESS is used.
1.1.0 (2022-06-01)
Flag instances now raise an error if used in a bool context. This prevents
the occasional mistake of testing an instance for truthiness rather than
testing flag.value.
absl-py no longer depends on six.
... (truncated)
Commits
9ac99c1 Merge pull request #201 from yilei/push_up_to_480399279
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps absl-py from 0.15.0 to 1.3.0.
Release notes
Sourced from absl-py's releases.
... (truncated)
Changelog
Sourced from absl-py's changelog.
... (truncated)
Commits
9ac99c1
Merge pull request #201 from yilei/push_up_to_480399279042ca20
Merge commit for internal changes.c75edbb
Preparing the release of absl-py 1.3.0.02f508d
Fix typo in documentation06561a0
Add a flags.set_default function.0dd0210
Support FlagHolders in flag module-level functions.b825efe
Remove Python 2 compat code.d172459
Output elapsed time duration values with millisecond precisionb2336b2
Fix typoa0ae316
Merge pull request #198 from yilei/push_up_to_469768218Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)