Closed steven-murray closed 4 years ago
It's not expecting the colon after ValueError
. It should raise a style error so it's more obvious. Let's add this to Issue #69 for tracking, and I'm mark it as an enhancement.
Ah, thanks. I'll fix that up. A better error would definitely make it easier to diagnose!
An error message will be present in v1.5.2. To handle it, I've allowed specifying types on errors. Just a colon will display an empty type error. (See b73bae737d214652a0862d26e1b3753905e66739.)
Great, that sounds like a good solution! Thanks!
Here's my method definition:
I get the error about raising ValueError, even though it's in the docstring. Any help appreciated!