-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider exporting MonkeyPatch to enable type hints #2712
Comments
currently we dont export internal classes, and deciding which internal interfaces to export will be a really interesting future experience |
Is it because |
The latter, specially regarding the name of the class and the API to initialize it. Alternatively I remember that it was possible to provide some |
@nicoddemus Thanks for the clarification. I'm not familiar with how the strub files work. I'll try look into it. |
Closing as obsoleted by discussion in #3342. |
I'll follow the other issue then. Thanks for the heads-up |
I would like to use type hints for the
monkeypatch
fixture, but the classMonkeyPatch
is not exported by pytest, so at the moment it needs to be imported from the internal package_pytest
.Example:
The text was updated successfully, but these errors were encountered: