Sylvain Marié

Results 299 comments of Sylvain Marié

This is a relatively old post, but [`pytest-cases`](https://smarie.github.io/python-pytest-cases/) might be a solution for you. Its [`parametrize_plus`](https://smarie.github.io/python-pytest-cases/#parametrize_plus) decorator supports referencing fixtures that are themselves parametrized, with `fixture_ref`. In short `pytest-cases` provides...

Two comments on this: - it seems to me that the ordering problem also applies on module-scope fixtures - would it be useful also to enable users to declare that...

Note that another way to fix this would be to make subconfig strict by default, but toggle the "non-strict" flag in the default config schema for the "extra" option. As...

Note that this can be even reduced down to ```python @runtime_validation def foo(self, arg: Type[T]) -> T: return arg() ``` Apparently that's the `Type[T]` that causes the problem, because changing...

Please note that in early versions of typing.py module the `Type` symbol does not exist. Could you please make sure that it is not imported by enforce ? Otherwise new...

I seem to get the same exception when using `typing.Sequence` instead of `typing.List` ```python from typing import Sequence from enforce import runtime_validation, config config(dict(mode='covariant')) # by the way, so sad...

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...

Of course, I understand. Do you want me to change the PR accordingly ? Cheers

Thanks for the explanation. I'm afraid I do not know enough about C-defined function integration in python to be of any help here, but it seems that at least setting...