Skip to content

Conversation

@saroad2
Copy link
Contributor

@saroad2 saroad2 commented Jan 2, 2022

When using the fixture parametrize, one can use the parameter argnames as a string separated with commas or a list of strings.

However, the type hint used is only str, which causes mypy to fail on my code, even though I use the fixture correctly.

Fixed that by changing the type of the paramter.

@smarie
Copy link
Owner

smarie commented Jan 3, 2022

Thanks ! Actually Tuple is also supported, but I'll add it

@smarie smarie merged commit 971e86f into smarie:main Jan 3, 2022
smarie pushed a commit that referenced this pull request Jan 3, 2022
@saroad2 saroad2 deleted the fix_parametrize_type_issue branch January 10, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants