Improve type error messages for operator functions. #436

Closed
opened 2024-06-26 14:03:32 +08:00 by lyken · 0 comments
Collaborator

Stemmed from #432

Incorrect argument type for other. Expected N, but got float at `/home/lyken/artiq/artiq/frontend/artiq_sinara_tester.py:469:36`

Notes:
    ndarray_ndims ∈ {uint32}
    N ∈ {int32, ndarray[int32, ndarray_ndims]}

That's a rather strange and confusing error message
that's from a mistyped self.core.delay(100*ms) which I suspect users will encounter quite often

Stemmed from https://git.m-labs.hk/M-Labs/nac3/issues/432 ``` Incorrect argument type for other. Expected N, but got float at `/home/lyken/artiq/artiq/frontend/artiq_sinara_tester.py:469:36` Notes: ndarray_ndims ∈ {uint32} N ∈ {int32, ndarray[int32, ndarray_ndims]} ``` > That's a rather strange and confusing error message > that's from a mistyped `self.core.delay(100*ms)` which I suspect users will encounter quite often
lyken self-assigned this 2024-06-26 14:03:32 +08:00
lyken changed title from Improve type error messages for binary operations. to Improve type error messages for operator functions. 2024-06-26 14:03:46 +08:00
sb10q closed this issue 2024-07-07 14:21:20 +08:00
Sign in to join this conversation.
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#436
No description provided.