RussBaz / enforce

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

Typing error #59

Open ArneBachmann opened 6 years ago

ArneBachmann commented 6 years ago

Any idea what that might mean? argument 'pinfo' was not of type <class 'sos.PathInfo'>. Actual type was untyped PathInfo We are in sos.py with a class PathInfo.

RussBaz commented 6 years ago

I believe it should mean that the type checker is expecting a Typed NamedTuple but it is getting an untyped version of NamedTuple.

Here are the instructions how to make one 'typed': https://github.com/RussBaz/enforce#namedtuple

Does this help?