ramonhagenaars / nptyping

💡 Type hints for Numpy and Pandas
MIT License
576 stars 29 forks source link

Add the shape to the error assert_isinstance error message #111

Open N-Demir opened 12 months ago

N-Demir commented 12 months ago

Hi! I saw there have been some PR improvements to the assert_isinstance error message. What about printing out the shape at the end as well? I'm able to easily enough debug that the types don't match by visually seeing what is in my array and the expected class, but I don't know what the input array's shape was without stepping into the debugger.