Skip to content

Dependency typing change fix #404

@dmdunla

Description

@dmdunla

Here is a recent type error from the regression tests:

yttb/tensor.py:1394: error: Incompatible types in assignment (expression has type "ndarray[tuple[int, ...], dtype[Any]]", variable has type "list[ndarray[tuple[int, ...], dtype[Any]]]")  [assignment]

Here is the offending code:

1391            combos = []
1392            for i in range(0, ngrps):
1393                combos.append(np.array(list(permutations(grps[i, :]))))
1394            combos = np.stack(combos)

I do not think we need to use np.stack.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions