Documentation on writing type hints for fixtures/pytest methods? #8290
Unanswered
erichang-bcad
asked this question in
Q&A
Replies: 1 comment
-
Hopefully #7469 would answer your question! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Are there any documentations on the proper ways of writing type hints for various fixtures or pytest methods? For example, this is what one of my
conftest.py
currently looks like:I couldn't find documentation on the proper classes to use as type hints of the
parser
andrequest
variables, so I just use thetype()
method. Of course, this is not ideal as I have to import from a pytest internal library.So I have two questions: Is there any documentations on the proper type hints for various pytest methods or pytest special variables? And if not, is there any plans to expose these classes through public API so users don't have to import from pytest's internal library? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions