Skip to content

Commit f9ff8bd

Browse files
committed
Address mypy complaint about implicit optional argument
Make it explicit the argument is optional.
1 parent 67b5a9d commit f9ff8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunits/core/__init__.pyi

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

0 commit comments

Comments
 (0)