You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove skimage specific array expression syntax (#77)
* Remove skimage specific array expression syntax
Which was somewhat ambiguious and more complicated than necessary.
Instead let's go with the convention used by scikit-learn.
* Remove skimage array forms from example package
* Replace "e.g." with "for example"
The latter is clearer and easier to understand language.
Copy file name to clipboardExpand all lines: docs/introduction.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ ski = "skimage"
110
110
"sklearn.tree" = "sklearn.tree"
111
111
```
112
112
113
-
which will enable any type that is prefixed with `ski.` or `sklearn.tree.`, e.g.`ski.transform.AffineTransform` or `sklearn.tree.DecisionTreeClassifier`.
113
+
which will enable any type that is prefixed with `ski.` or `sklearn.tree.`, for example`ski.transform.AffineTransform` or `sklearn.tree.DecisionTreeClassifier`.
114
114
115
115
:::{important}
116
116
Docstub doesn't check that types actually exist or if a symbol is a valid type.
@@ -162,7 +162,7 @@ In those cases, you docstub provides a few approaches to dealing with this.
162
162
Docstub will always preserve inline type annotations, regardless of what the docstring contains.
163
163
This is useful for example, if you want to express something that isn't yet supported by Python's type system.
164
164
165
-
E.g., consider the docstring type of `ord` parameter in [`numpy.linalg.matrix_norm`](https://numpy.org/doc/stable/reference/generated/numpy.linalg.matrix_norm.html)
165
+
For example, consider the docstring type of `ord` parameter in [`numpy.linalg.matrix_norm`](https://numpy.org/doc/stable/reference/generated/numpy.linalg.matrix_norm.html)
Copy file name to clipboardExpand all lines: docs/typing_syntax.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ This extends the basic subscription syntax for [generics](https://typing.python.
45
45
|`CONTAINER of (X or Y)`|`CONTAINER[X \| Y]`|
46
46
47
47
For the simple case `CONTAINER of X`, where `X` is a name, you can append `(s)` to indicate the plural form.
48
-
E.g., `list of float(s)`.
48
+
For example, `list of float(s)`.
49
49
50
50
Variants of for [**tuples**](https://typing.python.org/en/latest/spec/tuples.html)
51
51
@@ -73,28 +73,30 @@ In the future, docstub may warn against or disallow nesting these natural langua
73
73
74
74
This expression allows adding shape and datatype information for data structures like [NumPy arrays](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html).
75
75
76
-
`array` and `ndarray`, and `array-like` and `array_like` can be used interchange-ably.
76
+
`array` and `ndarray`, and `array-like` and `array_like` can be used interchange-ably for the variable `ARRAY` below.
0 commit comments