Open janosh opened 2 years ago
Seems reasonable, @T4rk1n you've worked on typing for dash.testing
a bit, any thoughts? Will it be possible to have this picked up automatically by VSCode when dash_duo
is used as a pytest
fixture, or will you still need to import a DashDuo
and annotate every dash_duo
?
You would have to annotate every single use of dash_duo
unless you had some extension like pytest-fixtures
installed.
Pycharm pick it up by default, not a vscode user so I don't know about it, but seems like the plugin would work?
I made a rough start over here if you want to pick up from that. Or maybe DashDuo
can be auto-generated?
Hi this sounds interesting. Happy to pick it up with some guidance. Thanks.
Is your feature request related to a problem? Please describe.
The DX for using the
pytest
fixturedash.testing.plugin.dash_duo()
could be improved by providing atyping.Protocol
to type hint available methods and their signatures.Describe the solution you'd like
Screenshot from VS Code showing auto-complete in action
Describe alternatives you've considered
None