Skip to content

Commit

Permalink
fix(doc): fix docstring_style: numpy config in mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Jun 14, 2024
1 parent 08573b7 commit af0d9d9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ plugins:
handlers:
python:
paths: [.]
selection:
docstring_style: numpy
options:
docstring_style: numpy
separate_signature: true
show_signature_annotations: true
annotations_path: brief
Expand Down
33 changes: 32 additions & 1 deletion reginald/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ def stream_progress_wrapper(
) -> Any:
"""Add a progress bar for iteration.
Parameters
----------
streamer
Funciton to add the `SpinnerColumn` while running
task_str
What to print whether `use_spinner` is `True` or not,
and if `use_spinner` is `True` is printed prior to
the `SpinningColumn`.
use_spinner
Whether to print the `SpinnerColumn` or not.
end
What to pass to the `end` parameter of `print` calls.
args
Any arguments to pass to `streamer`
kwargs
Any keyward arguments to pass to `streamer`.
Examples
--------
>>> from time import sleep
Expand Down Expand Up @@ -115,7 +132,21 @@ def stream_iter_progress_wrapper(
Parameters
----------
streamer
Function that
`Iterable`, `Callable` or `chain` to add the `SpinnerColumn`
while iteraing over. A `Callabe` will be converted to a
`Generator`.
task_str
What to print whether `use_spinner` is `True` or not,
and if `use_spinner` is `True` is printed prior to
the `SpinningColumn`.
use_spinner
Whether to print the `SpinnerColumn` or not.
end
What to pass to the `end` parameter of `print` calls.
args
Any arguments to pass to `streamer`
kwargs
Any keyward arguments to pass to `streamer`.
Examples
--------
Expand Down

0 comments on commit af0d9d9

Please sign in to comment.