Skip to content

Commit

Permalink
Quick comments and py3.8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed May 20, 2024
1 parent 807a45d commit 7e2a610
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opt_einsum/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def _filter_einsum_defaults(kwargs: Dict[Literal["order", "casting", "dtype", "o
return ret


# Overlaod for contract(str, *operands)
@overload
def contract_path(
subscripts: str,
Expand All @@ -155,10 +156,11 @@ def contract_path(
) -> Tuple[PathType, PathInfo]: ...


# Overlaod for contract(operand, indices, ....)
@overload
def contract_path(
subscripts: ArrayType,
*operands: ArrayType | Collection[int],
*operands: Union[ArrayType, Collection[int]],
use_blas: bool = True,
optimize: OptimizeKind = True,
memory_limit: _MemoryLimit = None,
Expand Down

0 comments on commit 7e2a610

Please sign in to comment.