typeshed
typeshed copied to clipboard
usjon: Add default keyword argument
Add missing default
keyword argument to dump
and dumps
functions.
Introduced since https://github.com/ultrajson/ultrajson/releases/tag/4.2.0
Relates to https://github.com/ultrajson/ultrajson/pull/470
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
It also seems like most of the arguments are keyword-only, even though they aren't marked as keyword-only in the stub:
>>> ujson.dump({'a': object()}, sys.stdout, True, 1, True, True, True, 1, (lambda x: "lol"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function takes exactly 2 arguments (9 given)
We can fix this in a separate pull request.
Could you address @Akuli's feedback?
Closing due to lack of response from OP