In many statistical applications, I'd like to type hint variables to be between two numbers (usually 0 and 1).
It would be best to hint that these variables are of type Interval[low, hi]
or similar. How can I type hint this in python?
In many statistical applications, I'd like to type hint variables to be between two numbers (usually 0 and 1).
It would be best to hint that these variables are of type Interval[low, hi]
or similar. How can I type hint this in python?