Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.31.0 #201

Merged
merged 11 commits into from Dec 30, 2023
Merged

Release v0.31.0 #201

merged 11 commits into from Dec 30, 2023

Conversation

neithere
Copy link
Owner

No description provided.

@neithere neithere added the release-candidate Release candidate label Oct 22, 2023
If the output stream is not a terminal (i.e. redirected to a file or another process), it's probably buffered.  In most cases it doesn't matter. However, if the output of your program is generated with delays between the lines and you may want to redirect them to another process and immediately see the results (e.g. `my_app.py | grep something`), it's a good idea to force flushing of the buffer. To do so, set `dispatch(..., always_flush=True)`.
The argument `namespace` is deprecated for the following public
functions:

- `dispatch()`
- `parse_and_resolve()`
* add draft for typing hints inspection

* refactor: use inspect.signature()

Also drop argh.utils.get_arg_spec().  It is no longer needed because
while getfullargspec() did not handle decorated functions properly,
signature() does.

A backwards incompatible change (an extremely rare edge case)
is documented in the changelog.

* docs: update changelog

* feat: basic argspec guessing from typing hints

* chore: remove @expects_obj

* fix: edge case with bool and annotations

* feat: simple policy switch in dispatch_command(s)

* docs: rewrite the tutorial, document hints

* docs: fix formatting

* docs: add help examples

* docs: improve wording

* docs: promote new example to readme itself

* docs: extract quickstart to a separate doc

* docs: named examples in README

* feat: support `Literal[a,b]` as `choices=(a,b)`

* chore: bump version

* refactor: use constant

* style: fix minor stuff
@neithere neithere merged commit e40014c into master Dec 30, 2023
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-candidate Release candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant