brocksam / pyproprop

Write classes with lots of similar simple defensive properties without the boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User `__repr__`s in error messages to help user distinguish between types

brocksam opened this issue · comments

When an error message is formatted for a list of options it should appear like:

>>> options = (None, "none", 3, "3")
>>> error_message(options)
Choose one of: 'None', '"none"', '3' or '"3"'.