Skip to content

Commit 0e8ce2e

Browse files
authored
ENH: Add args and kwargs to example (#258)
1 parent 5e9a629 commit 0e8ce2e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [status]
2+
jobs:
3+
circleci_artifacts_redirector_job:
4+
runs-on: ubuntu-latest
5+
name: Run CircleCI artifacts redirector
6+
steps:
7+
- name: GitHub Action step
8+
uses: larsoner/circleci-artifacts-redirector-action@master
9+
with:
10+
repo-token: ${{ secrets.GITHUB_TOKEN }}
11+
artifact-path: 0/html/index.html
12+
circleci-jobs: build_docs

doc/example.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# numpy module itself, unabbreviated.
3636

3737

38-
def foo(var1, var2, long_var_name='hi'):
38+
def foo(var1, var2, *args, long_var_name='hi', **kwargs):
3939
r"""Summarize the function in one line.
4040
4141
Several sentences providing an extended description. Refer to
@@ -51,8 +51,12 @@ def foo(var1, var2, long_var_name='hi'):
5151
The type above can either refer to an actual Python type
5252
(e.g. ``int``), or describe the type of the variable in more
5353
detail, e.g. ``(N,) ndarray`` or ``array_like``.
54+
*args : iterable
55+
Other arguments.
5456
long_var_name : {'hi', 'ho'}, optional
5557
Choices in brackets, default first when optional.
58+
**kwargs : dict
59+
Keyword arguments.
5660
5761
Returns
5862
-------

0 commit comments

Comments
 (0)