We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aedca5 commit 49d8ffaCopy full SHA for 49d8ffa
1 file changed
arraycontext/context.py
@@ -135,6 +135,7 @@
135
136
if TYPE_CHECKING:
137
import numpy as np
138
+ from numpy.typing import DTypeLike
139
140
import loopy
141
from pytools.tag import ToTagSetConvertible
@@ -223,7 +224,7 @@ def __hash__(self) -> int:
223
224
225
def zeros(self,
226
shape: int | tuple[int, ...],
- dtype: np.dtype[Any]) -> Array:
227
+ dtype: DTypeLike) -> Array:
228
warn(f"{type(self).__name__}.zeros is deprecated and will stop "
229
"working in 2025. Use actx.np.zeros instead.",
230
DeprecationWarning, stacklevel=2)
0 commit comments