contains-io/typingplus

Add classes that enforce types of subclasses.

dangle opened this issue · 1 comments

Create two classes that read annotated class attributes and generate properties for each attribute that will enforce the type of the values that can be set on the class.

One class should strictly enforce the type with _is_instance checks and the other should attempt to coerce the value to the expected type.

Not valid for 2.0.