ParameterSet is private #13431
Labels
topic: parametrize
related to @pytest.mark.parametrize
topic: typing
type-annotation issue
type: enhancement
new feature or API change, should be merged into features branch
Uh oh!
There was an error while loading. Please reload this page.
When using
pytest.param
to create parameters for a test from a function, that function will return a list ofParameterSet
but currently that is only available from_pytest.mark.structures
which is private so importing it results in a private import warning.It would be ideal if this structure was publicly available so developers don't need to disable warnings for uses of
pytest.param
when using fully hinted code.The current situation looks like this, which requires a
pyright
ignore directive to be warning free.This is simplified example, which could be defined inline but for more complex where the test cases were built by code using a function is more necessary.
Ideally this would be public to avoid this, for example:
The text was updated successfully, but these errors were encountered: