core/typecheck: fix np_array ndmin bug #490

Merged
sb10q merged 1 commits from np_array_bug into master 2024-08-13 15:02:20 +08:00
Collaborator

This typechecks but shouldn't:

my_arr: ndarray[float, 1] = np_array([[1.0, 2.0, 3.0]], ndmin=1)
        ^^^^^^^^^^^^^^^^^
        should be ndarray[float, 2]

PR to fix.

This typechecks but shouldn't: ``` my_arr: ndarray[float, 1] = np_array([[1.0, 2.0, 3.0]], ndmin=1) ^^^^^^^^^^^^^^^^^ should be ndarray[float, 2] ``` PR to fix.
lyken added 1 commit 2024-08-13 12:54:41 +08:00
lyken requested review from derppening 2024-08-13 13:02:20 +08:00
sb10q merged commit 35a7cecc12 into master 2024-08-13 15:02:20 +08:00
sb10q deleted branch np_array_bug 2024-08-13 15:02:20 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#490
No description provided.