Skip to content

Commit 5b79605

Browse files
committed
Update type hints for ufunc methods to use Any
Replaces 'Incomplete' with 'Any' for *args and **kwargs in __array_ufunc__ methods of ExprLike, MatrixExpr, and MatrixExprCons. This improves type hint accuracy and compatibility with numpy ufunc signatures.
1 parent 259f4ce commit 5b79605

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pyscipopt/scip.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import ClassVar
1+
from typing import Any, ClassVar
22

33
import numpy as np
44
from _typeshed import Incomplete
@@ -330,8 +330,8 @@ class ExprLike:
330330
self,
331331
ufunc: np.ufunc,
332332
method: str,
333-
*args: Incomplete,
334-
**kwargs: Incomplete,
333+
*args: Any,
334+
**kwargs: Any,
335335
) -> Incomplete: ...
336336
def __abs__(self) -> GenExpr: ...
337337
def exp(self) -> GenExpr: ...
@@ -531,17 +531,17 @@ class MatrixExpr(np.ndarray):
531531
self,
532532
ufunc: np.ufunc,
533533
method: str,
534-
*args: Incomplete,
535-
**kwargs: Incomplete,
534+
*args: Any,
535+
**kwargs: Any,
536536
) -> Incomplete: ...
537537

538538
class MatrixExprCons(np.ndarray):
539539
def __array_ufunc__(
540540
self,
541541
ufunc: np.ufunc,
542542
method: str,
543-
*args: Incomplete,
544-
**kwargs: Incomplete,
543+
*args: Any,
544+
**kwargs: Any,
545545
) -> Incomplete: ...
546546
def __eq__(self, other: object) -> bool: ...
547547

0 commit comments

Comments
 (0)