Skip to content

Commit 6d8630b

Browse files
committed
creation-like functions
1 parent c46640b commit 6d8630b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pint_array/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ def astype(x, dtype, /, *, copy=True, device=None):
325325
"max",
326326
"min",
327327
"mean",
328+
"ones_like",
329+
"zeros_like",
330+
"empty_like",
328331
):
329332

330333
def func(x, /, *args, func_str=func_str, **kwargs):
@@ -338,9 +341,6 @@ def func(x, /, *args, func_str=func_str, **kwargs):
338341

339342
# Functions which ignore units on input and output
340343
for func_str in (
341-
"ones_like",
342-
"zeros_like",
343-
"empty_like",
344344
"argsort",
345345
"argmin",
346346
"argmax",

0 commit comments

Comments
 (0)