Exception behaviour changed
get_date_object(["!!!!"])Neither exception type subclasses the other.
The refactored `get_date_object` now explicitly raises `ValueError` with a clear message for invalid inputs, matching the function’s documented contract, whereas the previous implementation raised an unexpected `TypeError`. The change was a deliberate performance refactor (regex replaced by manual checks) and the new exception type aligns with the library’s own error handling.
message = ( raise ValueError(message)Found by: Nemotron strategy search, search sample · no baseline found it
ran onToken Factory Sandboxes · image 54410864-aefc-4bb1-bbeb-5b5c15c9eda6
No regression test: adjudicated intended: no test pins the old behaviour.