Skip to content

Commit 8edbc89

Browse files
Fix typing in the stub
Co-authored-by: Noureldin <noureldinyosri@gmail.com>
1 parent 8655f29 commit 8edbc89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tunits/core/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class ValueArray(Generic[ValueType2], WithUnit):
334334
def to_proto(self, msg: tunits_pb2.ValueArray | None = None) -> tunits_pb2.ValueArray: ...
335335
def __init__(self, data: Any, unit: Any = None) -> None: ...
336336
def allclose(self, other: ValueArray | Value, *args: Any, **kwargs: float) -> bool: ...
337-
def unique(self) -> ValueArray: ...
337+
def unique(self: ArrayType) -> ArrayType: ...
338338
def __array__(self, dtype: DTypeLike = None) -> NDArray[Any]: ...
339339
def __array_wrap__(self, out_arr: NDArray[Any], context: Any = None) -> NDArray[Any]: ...
340340
def __copy__(self: ArrayType) -> ArrayType: ...

0 commit comments

Comments
 (0)