typeddjango / pytest-mypy-plugins

pytest plugin for testing mypy types, stubs, and plugins
https://pypi.org/project/pytest-mypy-plugins/
MIT License
105 stars 24 forks source link

Allow parametrizing `mypy_config` #118

Closed sobolevn closed 1 year ago

sobolevn commented 1 year ago

We have these two tests in django-stubs: https://github.com/typeddjango/django-stubs/blob/08a11d7f863aac88df0635550983033da4aff5ec/tests/typecheck/models/test_extra_methods.yml#L22-L66

The only different thing between them is: disallow_any_generics = true vs disallow_any_generics = false in mypy_config field.

I think we can parametrize mypy_config as well.