Skip to content
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

docstubs to use ... #516

Open
Josverl opened this issue Feb 16, 2024 · 0 comments
Open

docstubs to use ... #516

Josverl opened this issue Feb 16, 2024 · 0 comments
Labels
DocStubs enhancement New feature or request Merge codemod to merge two stubs to make a better one

Comments

@Josverl
Copy link
Owner

Josverl commented Feb 16, 2024

Currently the docstubs use "*args, **kwargs" to replace ... in the parameters

This should be changed back to ... , but this also requires changing the merge code , and perhaps also some other edits

        # # formatting
        # # fixme: ... not allowed in .py
        if self.target == ".py":
            params = params.replace("*, ...", "*args, **kwargs")
            params = params.replace("...", "*args, **kwargs")
@Josverl Josverl added enhancement New feature or request DocStubs Merge codemod to merge two stubs to make a better one labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DocStubs enhancement New feature or request Merge codemod to merge two stubs to make a better one
Projects
None yet
Development

No branches or pull requests

1 participant