Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't allow checking if
None
is within the bounds (#1140)
This was never supported, a `ValueError` would be raised if `None` was passed to `__contains__`. Now we assert to make it clear that it's not allowed. In the future we should probably change `Bounds` to always allow `None` as bounds and make `_T` simply bound to `Comparable`, as supporting `None` depending on the generic type makes it very hard to provide correct type hints.
- Loading branch information