Skip to content

Commit 9794099

Browse files
authored
Change kwargs input from dict to any (#244)
* Change kwargs input from dict to any * News * Explicitly list
1 parent 1f99f5e commit 9794099

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

news/kwargs.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* Docstring for kwargs updated from dict to Any since various input types from kwargs are possible (e.g. a list/tuple for squeeze, a tuple for funcy, a float for smear-pdf). This should remove the warning that inputs are not dicts.
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/morph/morphpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def morph(
100100
plot: bool
101101
Show a plot of the morphed and target functions as well as the
102102
difference curve (default: False).
103-
kwargs: dict
103+
kwargs: str, float, list, tuple, bool
104104
See the diffpy.morph website for full list of options.
105105
Returns
106106
-------
@@ -155,7 +155,7 @@ def morph_arrays(
155155
plot: bool
156156
Show a plot of the morphed and target functions as well as the
157157
difference curve (default: False).
158-
kwargs: dict
158+
kwargs: str, float, list, tuple, bool
159159
See the diffpy.morph website for full list of options.
160160
Returns
161161
-------

0 commit comments

Comments
 (0)