Skip to content

Commit 3eb1ff9

Browse files
committed
Add inplace ignoring of flake8 warnings
1 parent 3ac22b8 commit 3eb1ff9

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. "
@@ -574,7 +574,7 @@ def __sycl_usm_array_interface__(self):
574574
"""
575575
Give ``__sycl_usm_array_interface__`` dictionary describing the array.
576576
577-
"""
577+
""" # noqa: D200
578578
return self._array_obj.__sycl_usm_array_interface__
579579

580580
def __truediv__(self, other):
@@ -1076,7 +1076,7 @@ def dtype(self):
10761076
"""
10771077
Returns NumPy's dtype corresponding to the type of the array elements.
10781078
1079-
"""
1079+
""" # noqa: D200
10801080

10811081
return self._array_obj.dtype
10821082

@@ -1125,7 +1125,7 @@ def flat(self):
11251125
"""
11261126
Return a flat iterator, or set a flattened version of self to value.
11271127
1128-
"""
1128+
""" # noqa: D200
11291129

11301130
return dpnp.flatiter(self)
11311131

@@ -1886,7 +1886,7 @@ def sycl_context(self):
18861886
"""
18871887
Return :class:`dpctl.SyclContext` object to which USM data is bound.
18881888
1889-
"""
1889+
""" # noqa: D200
18901890
return self._array_obj.sycl_context
18911891

18921892
@property
@@ -1903,7 +1903,7 @@ def sycl_queue(self):
19031903
"""
19041904
Return :class:`dpctl.SyclQueue` object associated with USM data.
19051905
1906-
"""
1906+
""" # noqa: D200
19071907
return self._array_obj.sycl_queue
19081908

19091909
@property

0 commit comments

Comments
 (0)