mmohades / Venmo

Venmo API client for Python
GNU General Public License v3.0
145 stars 43 forks source link

Make stringified user props match actual prop names #9

Closed AstroCB closed 4 years ago

AstroCB commented 4 years ago

This PR just changes the user model's __str__ to use the actual names of the properties of the User object so that it's easier to figure out what they correspond to if you want to access them separately.

This tripped me up since I was looking for a firstname property on a user object after viewing its string representation, but that didn't exist – it was first_name.

This is a super cool project, by the way! I've been looking for something like this for a long time.