Open grayfall opened 7 years ago
OK, this is caused by a failing check - it tests if the type constraint is a generic. I found a potential cause of recent generic problems in there.
Enforce.py looks for typing.GenericMeta in mro to confirm if a constraint is a generic. I recently checked mro of some generics in python 3.6.2 and it was not available there. Either something has changed and I missed it, or some generics need special processing.
I will need to investigate it more. This is almost the same issues as #51.
I use the
Sequence
generic ABC in my codebase a lot, butruntime_validation
doesn't seem to handle it. Here is a small reproducible example:The traceback: