[engine] Check that types passed to TypeConstraint inits are in fact types

Review Request #4209 - Created Sept. 7, 2016 and submitted

Information
Nick Howard (Twitter)
pants
3841
Reviewers
pants-reviews
kwlzn, patricklaw, stuhood
I was adding some type constraints somewhere and didn't splat types. This failed to work because a list is not a type.

This patch adds a validation that raises a TypeError if the types are not types

Wrote a failing test and made it pass. CI away in the PR.

Stu Hood
Ity Kaul
Nick Howard (Twitter)
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted as https://github.com/pantsbuild/pants/commit/a8688bf37046c291df9ddc9aeaef224bf9f55c94
Loading...