hynek / characteristic

Please use attrs instead!
https://attrs.readthedocs.io/
MIT License
84 stars 19 forks source link

Add ability to indicate attributes are required #1

Closed itamarst closed 10 years ago

itamarst commented 10 years ago

It would be nice to able to say "these attributes are required" in with_init and friends.

hynek commented 10 years ago

Attributes are required by default, you can only make them optional by adding a default to them. Is that what you mean? If yes, it’s a doc bug.

itamarst commented 10 years ago

I guess I didn't read the docs carefully enough. Sorry!