v0.31.0 — Annotation-driven! #214
neithere
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
This release is a major step forward for Argh. It paves the way to a fully annotations-driven approach where decorators will remain a mere legacy.
This text is a brief summary of the full changelog entry: https://argh.readthedocs.io/en/latest/changes.html#version-0-31-0-2023-12-30
Breaking changes:
@argdecorator.BY_NAME_IF_HAS_DEFAULTconcerning the order of variadic positional vs. keyword-only arguments.@expects_obj.Enhancements:
argh.dispatch_command()andargh.dispatch_commands()now accept a new parameter
old_name_mapping_policy.Deprecated:
namespaceargument inargh.dispatch()andargh.parse_and_resolve().Rationale: continued API cleanup. It's already possible to mutate the
namespace object between parsing and calling the endpoint; it's unlikely that
anyone would need to specify a custom namespace class or pre-populate it
before parsing. Please file an issue if you have a valid use case.
Other changes:
Full Diff: v0.30.5...v0.31.0
This discussion was created from the release v0.31.0 — Annotation-driven!.
Beta Was this translation helpful? Give feedback.
All reactions