Josverl / micropython-stubber

Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or MyPy
https://micropython-stubber.readthedocs.io
Other
175 stars 14 forks source link

docstubs to use ... #516

Open Josverl opened 7 months ago

Josverl commented 7 months ago

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")