tyro icon indicating copy to clipboard operation
tyro copied to clipboard

Assertion won't be formatted correctly in _arguments

Open tovacinni opened this issue 2 years ago • 1 comments

Sorry for the issue spamming- but here's a small bug report that this assertion needs to be replaced by an Exception to properly display which fields have issues in the defaults. I would submit a PR but I'll probably get the type of Exception to use wrong :D

https://github.com/brentyi/tyro/blob/e88e690e14ffe87e13419fa2b6427bc77c4ae336/tyro/_arguments.py#L198-L201

tovacinni avatar Dec 30 '22 04:12 tovacinni