Skip to content

Commit 2a10fb3

Browse files
committed
Add inplace ignoring of flake8 warnings
1 parent ac1497b commit 2a10fb3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ extend-ignore =
2424
D105,
2525
# missing docstring in __init__:
2626
D107,
27-
# TODO: remove:
28-
D200, D403,
2927
# no blank lines allowed after function docstring:
3028
D202,
3129
# 1 blank line required between summary line and description:

dpnp/dpnp_array.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __array__(self, dtype=None, /, *, copy=None):
134134
:class:`dpnp.ndarray` instance into NumPy array with data type `object`
135135
and every element being zero-dimensional :class:`dpnp.ndarray`.
136136
137-
"""
137+
""" # noqa: D403
138138

139139
raise TypeError(
140140
"Implicit conversion to a NumPy array is not allowed. "
@@ -572,7 +572,7 @@ def __sycl_usm_array_interface__(self):
572572
"""
573573
Give ``__sycl_usm_array_interface__`` dictionary describing the array.
574574
575-
"""
575+
""" # noqa: D200
576576
return self._array_obj.__sycl_usm_array_interface__
577577

578578
def __truediv__(self, other):
@@ -1074,7 +1074,7 @@ def dtype(self):
10741074
"""
10751075
Returns NumPy's dtype corresponding to the type of the array elements.
10761076
1077-
"""
1077+
""" # noqa: D200
10781078

10791079
return self._array_obj.dtype
10801080

@@ -1123,7 +1123,7 @@ def flat(self):
11231123
"""
11241124
Return a flat iterator, or set a flattened version of self to value.
11251125
1126-
"""
1126+
""" # noqa: D200
11271127

11281128
return dpnp.flatiter(self)
11291129

@@ -1884,7 +1884,7 @@ def sycl_context(self):
18841884
"""
18851885
Return :class:`dpctl.SyclContext` object to which USM data is bound.
18861886
1887-
"""
1887+
""" # noqa: D200
18881888
return self._array_obj.sycl_context
18891889

18901890
@property
@@ -1901,7 +1901,7 @@ def sycl_queue(self):
19011901
"""
19021902
Return :class:`dpctl.SyclQueue` object associated with USM data.
19031903
1904-
"""
1904+
""" # noqa: D200
19051905
return self._array_obj.sycl_queue
19061906

19071907
@property

0 commit comments

Comments
 (0)