PydanticUserError incorrectly subclasses TypeError , and inconsistent error codes between @field serializer…
PydanticUserError incorrectly subclasses TypeError , and inconsistent error codes between @field serializer…: a task in LegoFlow-SWE (Harbor dataset). PydanticUserError currently inherits from TypeError . Because Python’s TypeError is meant for type‑mismatch errors (e.g., passing a str where an…
The task
`PydanticUserError` currently inherits from `TypeError`. Because Python’s `TypeError` is meant for type‑mismatch errors (e.g., passing a `str` where an `int` is expected), this causes **any** `except TypeError` block to accidentally catch all `PydanticUserError` instances as well. That can silently swallow…
Part of Lego-X/LegoFlow-SWE.