Typing#

Types Aliases#

ArraySymbolLike: TypeAlias = dwave.optimization._model.ArraySymbol | ArrayLike[source]#

Either a ArraySymbol or a NumPy array-like.

ShapeLike: TypeAlias = int | tuple[int, ...][source]#

Objects that can be converted to a shape

Imported Classes#

In addition to the above type aliases, dwave.optimization.typing imports the following classes into the namespace for use with type hints.