@@ -281,7 +281,12 @@ class DataFrame(NDFrame, OpsMixin):
281
281
def dot (self , other : DataFrame | ArrayLike ) -> DataFrame : ...
282
282
@overload
283
283
def dot (self , other : Series ) -> Series : ...
284
- def __matmul__ (self , other ): ...
284
+ @overload
285
+ def __matmul__ (self , other : DataFrame ) -> DataFrame : ...
286
+ @overload
287
+ def __matmul__ (self , other : Series ) -> Series : ...
288
+ @overload
289
+ def __matmul__ (self , other : np .ndarray ) -> DataFrame : ...
285
290
def __rmatmul__ (self , other ): ...
286
291
@overload
287
292
@classmethod
@@ -620,7 +625,12 @@ class DataFrame(NDFrame, OpsMixin):
620
625
def query (
621
626
self , expr : _str , * , inplace : Literal [False ] = ..., ** kwargs
622
627
) -> DataFrame : ...
623
- def eval (self , expr : _str , * , inplace : _bool = ..., ** kwargs ): ...
628
+ @overload
629
+ def eval (self , expr : _str , * , inplace : Literal [True ], ** kwargs ) -> None : ...
630
+ @overload
631
+ def eval (
632
+ self , expr : _str , * , inplace : Literal [False ] = ..., ** kwargs
633
+ ) -> Scalar | np .ndarray | DataFrame | Series : ...
624
634
AstypeArgExt : TypeAlias = (
625
635
AstypeArg
626
636
| Literal [
0 commit comments