Open smarie opened 6 years ago
I had a look in the code: in the case of generics, it seems that you are proxying the whole class with GenericProxy(ObjectProxy)
, which seems overkill: applying runtime_validation
on the class as usual and simply replacing the __getitem__
class method so that it applies it on generated classes should be sufficient. Or did I miss some important functionality that is specific to Generic classes ?
yields
This prevents type constructor introspection, for example with the parsyfiles parsing library.