42
Traceback (most recent call last):
File "/tmp/test.py", line 19, in <module>
meta(Bar())
File "/home/marcin/venv3/golem/lib/python3.6/site-packages/enforce/decorators.py", line 104, in universal
_args, _kwargs, _ = enforcer.validate_inputs(parameters)
File "/home/marcin/venv3/golem/lib/python3.6/site-packages/enforce/enforcers.py", line 86, in validate_inputs
raise RuntimeTypeError(exception_text)
enforce.exceptions.RuntimeTypeError:
The following runtime type errors were encountered:
Argument 'x' was not of type <class '__main__.Foo'>. Actual type was Bar.
Run the following code:
This errors out with:
The code is validated properly by
mypy --strict
.