Skip to content

Note completers can return iterables of strings, not just lists#422

Merged
kislyuk merged 1 commit intokislyuk:developfrom
scop:doc/completer-return-type
Apr 8, 2023
Merged

Note completers can return iterables of strings, not just lists#422
kislyuk merged 1 commit intokislyuk:developfrom
scop:doc/completer-return-type

Conversation

@scop
Copy link
Copy Markdown
Contributor

@scop scop commented Apr 7, 2023

Some of the built in implementations actually do that already.

Some of the built in implementations actually do that already.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (03a1881) 81.29% compared to head (3c73ebd) 81.29%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #422   +/-   ##
========================================
  Coverage    81.29%   81.29%           
========================================
  Files           10       10           
  Lines          770      770           
========================================
  Hits           626      626           
  Misses         144      144           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kislyuk kislyuk merged commit cbfb8da into kislyuk:develop Apr 8, 2023
@kislyuk
Copy link
Copy Markdown
Owner

kislyuk commented Apr 8, 2023

Thanks! And thanks for all your work on bash-completion.

@scop scop deleted the doc/completer-return-type branch April 8, 2023 08:56
theacodes pushed a commit to wntrblm/nox that referenced this pull request Feb 20, 2024
* feat: add envdir and report completions

* feat: add python completions

* feat: add tag completion

* feat: add keywords non-completion

This will actually only prevent completions with bash if the completion
was registered using
`register-python-argcomplete --complete-arguments -- nox` (i.e. with
_all_ fallback completions disabled, not just the readline ones). But it
does not hurt if registered without doing so.

* refactor: return Iterables from completers

kislyuk/argcomplete#422

* style: simplify completer functions

Co-authored-by: Stanislav Filin <stasfilin@hotmail.com>

* fix: return type hint for completer callables (`Iterable[str]`)

kislyuk/argcomplete#422

* chore: appease mypy in completers code

* test: add python and tag completer tests

---------

Co-authored-by: Stanislav Filin <stasfilin@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants