RussBaz / enforce

Python 3.5+ runtime type checking for integration testing and data validation
543 stars 21 forks source link

New Type Parser #5

Closed TheDataLeek closed 8 years ago

TheDataLeek commented 8 years ago

I've implemented a new recursive type parser to hopefully resolve issues #2 and #3.

High level overview of the changes:

Some notes about this:

  1. We assume that every level of an iterable type is annotated. If it isn't, an error will be raised.
  2. Because every item is checked, it is not very efficient for large arrays or large nested structures of any time

Steps Forward:

Let me know if you want me to work on any of these changes before you consider my PR.

Will Farmer

TheDataLeek commented 8 years ago

Hey, saw your response on #3.

I totally missed the dev branch, that's completely my bad. I still have my code, I'll help improve the dev branch. I've been using this project daily since my switch to Python 3.5, so I'm very interested on helping improve the functionality.

Give me a bit to review the dev branch and see what needs to be done and I'll get back to you.

In the meantime, I'll close this PR as it's not necessary/not in the current direction of the project.

Thanks for the quick response! Will Farmer