enforce
enforce copied to clipboard
Typing error
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
.
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?