iotile / typedargs

API typechecking and command line shell generation package
GNU Lesser General Public License v3.0
1 stars 2 forks source link

Support shadow classes for simple python builtins #73

Closed timburke closed 4 years ago

timburke commented 4 years ago

See #70.

We need to be able to augment function annotations like str and int and instead of directly using the str or int classes, we need to instead use out augmented type classes in the types subpackage so we have additional formatters and validators.

The goal should be that when we see str, int, float in a function annotation, the type class we map it to is our version of that type class inside the types subpackage.