Skip to content

What is the general type for ctypes.Array and np.ndarray? #1290

Answered by hauntsaninja
monchin asked this question in Q&A
Discussion options

You must be logged in to vote

A Union is very likely what you want. You could also potentially write a Protocol defining exactly what you expect the shared behaviour to be.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by monchin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants