Commit 964f28d
authored
Threshold must be a real number (#322)
* Add venv to gitignore
* Check if threshold is a real value
* Simplified threshold type-check
* Follow linter rules
* Fix last linter error
* Add test to check correct behaviour. Sacrified simplicity for the bool case.
* Update test. Stick to custom message. It's bool permissive
* Explicit boolean permissive case in test
* Changed isinstance for custom ValueError message
* TypeError for most input. ValueError for String case.1 parent bdfdb24 commit 964f28d
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
574 | 580 | | |
575 | 581 | | |
576 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
183 | 202 | | |
184 | 203 | | |
185 | 204 | | |
| |||
0 commit comments